Is there any alternate way in angular to achieve what ng-include does in angularjs?
Thinking from angular2+ way it's better to declare the child template as component:
@Component({
selector: 'app-child',
template: `
here is child template that includes myTemplate
`
})
export class ChildComponent {
}
@Component({
selector: 'app-root',
template: `
Parent
`
})
export class AppComponent {
}