1.

What Is @ngmodule?

Answer»

@NgModule is a decorator FUNCTION. A decorator function allows users to MARK something as Angular 2 thing (could be a module or component or something else) and it enables you to provide additional data that DETERMINES how this Angular 2 thing will be processed, instantiated and used at the runtime. So, WHENEVER user writes @NgModule, it tells the Angular 2 module, what’s going to be INCLUDED and used in and using this module.

@NgModule is a decorator function. A decorator function allows users to mark something as Angular 2 thing (could be a module or component or something else) and it enables you to provide additional data that determines how this Angular 2 thing will be processed, instantiated and used at the runtime. So, whenever user writes @NgModule, it tells the Angular 2 module, what’s going to be included and used in and using this module.



Discussion

No Comment Found