Question from the Angular test

Create a new component in an Angular module and make it available in the whole application.

Easy

From an Angular module, which is not the main module, I want to create a new component and make it available in the whole application(also in the module in which it is defined). What syntax should we use?

Author: Emmanuel DemeyStatus: PublishedQuestion passed 2570 times
Edit
1
Community Evaluations
developer avatar
No
26/06/2024
NW : import { Calendar } from './calendar.component'; @NgModule({ declarations: [Calendar], exports: [Calendar] }) export class CommonModule { }