Angular - Modules
Which of the following correctly demonstrates how to create an Angular module using the
@NgModule decorator?@NgModule decorator?@NgModule decorator is used to define an Angular module.declarations and imports inside the decorator.@NgModule({ declarations: [MyComponent], imports: [BrowserModule] }) export class MyModule {} correctly shows the Angular module definition.@NgModule defines modules [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions