Components is a class that has programming logic for html page.In dotnet point,we can say it as code behind.
Components are identified using @component decorator.
It has 3 main blocks
Class
Class which contains properties and methods for View
Template
it contains HTML file or template to render view in browser
Metadata
Inside the component we see the object like templateurl,selector,styleurls
that object is called as METADATA.
Every component should have template.
Tagname: By using this tagname we are going to invoke this component.
Welcome to {{title}}
<router-outlet><router-outlet>