December 2017
Beginner
372 pages
10h 32m
English
As we saw earlier, we had used the snc-news directive in our app component HTML page, but how does Angular know what snc-news is, where to reference this directive, and what needs to be replaced as an HTML for this directive? The answer to these questions is how Angular looks at the modules.
As we discussed earlier, an Angular application is made up of multiple modules, with each module working as a container of multiple components and directives. This module works as a boundary in which the component resolves its directives and dependencies. So, when Angular has to load a directive, it checks the module of the component to determine which directives are visible to that component.
Every Angular ...
Read now
Unlock full access