This entry is mainly covered the basic
Directives and some tricks. All those are just to have a quick view and practise about each core elements.
Component encapsulates the template, data and the behaviour of view.
Each Angular2 App has at least a
root component and each components can have multiple sub-components.
Like below, the root componnet has three sub-components, which are sidebar, courses and navbar. And also each sub-component can have their child-components, like courses component could have rating components and feedback components.