filmov
tv
AngularJS Tutorial 6 - Modules

Показать описание
In this video we are going to cover Modules in angularJS.
Modules are one of the most important part of any angularJS application. Modules act like a container for different parts of your application like routes, controller, filters,directives,services etc.
How to create Module
Creating module is quiet easy and straight forward. So to create module you need to use angular object's module method.
module method takes two parameter- first parameter is the name of the module and second the list of dependencies.
Module may have dependency on another modules, so you need to pass all module names in second parameter on which your main module is dependent.
If you module is not dependent on any other modules , you need to pass empty array in 2nd parameter of module() method.
How to use module in shell page
Now to refer your "mainApp" module in shell page so that all the associated controllers,filters,directives can load as soon as your angular will load you need to use this module in ng-app directive
ng-app = "mainApp"
Further in the coming videos we will bind controllers on this module
To visit all my videos on angularJS Please visit this link:
Modules are one of the most important part of any angularJS application. Modules act like a container for different parts of your application like routes, controller, filters,directives,services etc.
How to create Module
Creating module is quiet easy and straight forward. So to create module you need to use angular object's module method.
module method takes two parameter- first parameter is the name of the module and second the list of dependencies.
Module may have dependency on another modules, so you need to pass all module names in second parameter on which your main module is dependent.
If you module is not dependent on any other modules , you need to pass empty array in 2nd parameter of module() method.
How to use module in shell page
Now to refer your "mainApp" module in shell page so that all the associated controllers,filters,directives can load as soon as your angular will load you need to use this module in ng-app directive
ng-app = "mainApp"
Further in the coming videos we will bind controllers on this module
To visit all my videos on angularJS Please visit this link:
AngularJS Tutorial 6 - Modules
AngularJS Tutorial #8 - Modules
AngularJS Tutorial 6 | AngularJS Validation | AngularJS Module
Learning AngularJS: Modules | packtpub.com
6. Module in AngularJS | AngularJS Tutorial (Hindi) | Extreme Programmer
Part 6 - Modules in AngularJS
AngularJS Tutorial for Beginners 4 AngularJS Module and Controllers
AngularJS 1.6.x Tutorial - 6 - services (and factories)
angularjs modules tutorial
How to Create a New Module in AngularJS, Angular Tutorial
AngularJS JumpStart Course - Introduction and Module 1 Videos
AngularJS lesson 3 - Modules and Controllers
angular js module - just starting, dependencies and config blocks
How to use Module,Controller and scope in angularJS
Angularjs modules and controller | AngularJS scope
AngularJS Tutorial #6 - Expressions
AngularJS Tutorial for Beginners (Full Course)
AngularJS Tutorial: [#6] Creating the User Interface - Getting Started with AngularJS
Angular for Beginners Course [Full Front End Tutorial with TypeScript]
AngularJS Tutorial 6: How to read textbox data on button click using AngularJS
Angular Tutorial for Beginners: Learn Angular & TypeScript
Module in Angular JS in Tamil | Angular JS Course in Tamil [Class - 11]
Web Development Using Spring and AngularJS - Tutorial 6
Angular modules and controllers
Комментарии