Modules

AngularJS introduces the concept of a module representing components in an application. The module provides a namespace that allows you to reference directives, scopes, and other components based on model name. This makes it easier to package and reuse parts of an application.

Each view or webpage in AngularJS has a single module assigned to it via the ng-app directive. (Directives are discussed later in this chapter.) However, you can add other modules to the main module as dependencies, which provides a very structured and componentized application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.95.74