You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, we only have one global module where all the services, components, ... are defined in. This is not entirely correct. If we have this tree
At the moment, we only have one global module where all the services, components, ... are defined in. This is not entirely correct. If we have this tree
Where
D
is defined like thisD
only should be available for all the children ofC
. But because they are now placed in the global module,D
will also be available forB
.Solution
Create an
angular.module()
per component, service, ... Inject the modules accordingly.For the example above, it would look like.
which will limit the usage of
D
to everything inside theC
module.The text was updated successfully, but these errors were encountered: