October 2017
Intermediate to advanced
280 pages
6h 50m
English
We've already built a few simple applications as a composition of components and directives. We saw that components are basically directives with views, so we can implement them by nesting or composing other directives and components.
The following figure illustrates this with a structural diagram:

The composition could be achieved by nesting directives and components within the components templates, taking advantage of the nested nature of the used markup. For instance, let's say we have a component with the sample-component selector, which has the following definition:
@Component({ selector: 'sample-component', ...Read now
Unlock full access