In Angular's@NgModuledecorator, thedeclarationsarray 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 theprovidersarray of@NgModuleor a component's@Componentdecorator, not indeclarations.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit