Trying to create a new tab. I have a tab.component with methods of create tab, that i got from the forums. Trying to call from another component, but it's complaining about the ComponentFactoryResolver. Very new to Angular 2.
Any advice?
export class TabComponent {
constructor(private resolver: ComponentFactoryResolver) {}
public createNewTab(componentModulePath, tabName, componentInputs) { //rest of code}
}
export class AppComponent {
constructor() {
let TabComponent: test = new TabComponent(); //Can't initialise here, Complains TabControl signature does not match
}
}