Difference between revisions of "AngularJS module"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Created page with "In AngularJS, a module Angular apps are modular. They consist of many files each dedicated to a purpose. ES5 JavaScript doesn't have a native module system. There are sever...") |
Karl Jones (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | In AngularJS, a module | + | In [[AngularJS]], a module is a unit of code. |
Angular apps are modular. They consist of many files each dedicated to a purpose. | Angular apps are modular. They consist of many files each dedicated to a purpose. | ||
Line 16: | Line 16: | ||
When we need something from Angular, we use the <code>ng</code> object. | When we need something from Angular, we use the <code>ng</code> object. | ||
+ | |||
+ | == See also == | ||
+ | |||
+ | * [[AngularJS]] | ||
+ | * [[JavaScript library]] | ||
+ | * [[Web application]] | ||
+ | |||
+ | [[Category:AngularJS]] | ||
+ | [[Category:Web design and development]] | ||
+ | [[Category:JavaScript]] |
Revision as of 12:45, 31 December 2016
In AngularJS, a module is a unit of code.
Angular apps are modular. They consist of many files each dedicated to a purpose.
ES5 JavaScript doesn't have a native module system. There are several popular 3rd party module systems available.
Module interaction
In Angular apps, modules reference other modules using the app
object.
When another module needs to refer to AppComponent
, it gets it from app.AppComponent
.
Angular modularity
Angular is also modular. It is a collection of library modules. Each library is itself a module made up of several, related feature modules.
When we need something from Angular, we use the ng
object.