In Angular, what would you inject using Declarations in MGModule?
@NgModule({
declarations: [],
})
In Angular's @NgModule decorator, the declarations array is used to make directives (including components and pipes) from the current module available to other directives in the current module. Services are typically provided in the providers array of @NgModule or a component's @Component decorator, not in declarations.
Elden
6 months agoJospeh
6 months agoJose
6 months agoCarolann
6 months agoJospeh
6 months agoMiesha
6 months agoAleisha
6 months agoJina
7 months agoQuentin
7 months agoSabra
7 months agoDelmy
7 months ago