Skip to main content

Posts

Showing posts with the label NgModule declarations Array Angular 5 and 6

What classes should you not add to module declarations?

NgModule Declarations Array List   - We do not declare - Modules, Services, objects, and non-angular helper classes in the module's declarations .  Stayed Informed   -  What Is Modules? Syntax for NgModule declaration Array -   declarations: [     AppComponent ,     LoginComponent ,     MyPipe ,     MyDirective   ] The non-Angular classes and objects as following as - 1.       Strings 2.       Numbers 3.       Functions 4.       Entity Models 5.       Configurations 6.       and other helper classes Note - You can use directives, components, and pipes classes in a module  declaration . The example of what goes into declarations array list – //JavaScript imports directives, components, and pipes clas...