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