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...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers