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
12 months agoJospeh
1 years agoJose
1 years agoCarolann
1 years agoJospeh
1 years agoMiesha
1 years agoAleisha
1 years agoJina
1 years agoQuentin
1 years agoSabra
1 years agoDelmy
1 years ago