Angular. Modules

Home » Tutorials » JavaScript » Angular. Modules
In this video we’ll discuss modules. Modules are “global building blocks” of Angular applications. Angular always has one root module AppModule. Angular module is a class with the NgModule decorator. This decorator gets metadata with next props:

  • declarations – the list of files and pipes which are belong to the module.
  • imports – modules list, required for the application work.
  • providers – the set of injectables entities (services and etc).
  • bootstrap – init load component

There are another properties that you can read by this link.

In the end of this lesson we’ll update the packages of our app with ng update command and check the code quality with ng lint.

As I promised in the end of this video, you could start to rewrite cabinet project from angularjs to angular. Download source code from this link.


Submit a Comment

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.

Pin It on Pinterest

Share This