Angular NgModules FAQ - Example statement could be incorrent in Doc.

18 views
Skip to first unread message

amardeep Singh

unread,
Aug 2, 2020, 3:27:43 AM8/2/20
to Angular and AngularJS discussion
Hi all,

While reading the official documentation for Angular I came across an example statement which seems to be false (incorrect) when read in reference to its above explanation.

Statement : If NgModule A provides a service for token 'X' and imports an NgModule B that also provides a service for token 'X', then NgModule A's service definition "wins".

URL: https://angular.io/guide/ngmodule-faq#what-if-two-modules-provide-the-same-service

Please provide your opinion on this. If incorrect I will create a PR on GitHub.

Thank you.

Sander Elias

unread,
Aug 2, 2020, 3:56:45 AM8/2/20
to Angular and AngularJS discussion
Well, it seems one of the two is off. You should test, and pr the one that is incorrect.

Op zondag 2 augustus 2020 om 09:27:43 UTC+2 schreef amar...@gmail.com:
Reply all
Reply to author
Forward
0 new messages