Passing HTML into my component
Create a sidebar component with an <ng-content> where the passed children should be displayed @Component({ selector: ‘sidebar’, template: ‘<ul><ng-content></ng-content></ul>’ }) export class SidebarComponent { } and use it like <sidebar> <li class=”tooltipped” data-position=”right” data-delay=”50″ data-tooltip=”Go to the dashboard”> <a href=”#”> <i class=”material-icons”>home</i> <span>Home</span> </a> </li> <li class=”tooltipped” data-position=”right” data-delay=”50″ data-tooltip=”Manage your times”> <a href=”#”> <i … Read more