4
我有以下的子组件,它是继承父组件:角4 - 模板继承
@Component({
template: `<p>child</p>`
})
export class EditChildComponent extends EditViewComponent{
constructor(){
super();
}
}
@Component({
template: `<p>parent</p>`
})
export class EditViewComponent{
constructor(){
}
}
现在有没有什么办法放置EditViewComponent的模板在ChildComponents模板像你将与NG-做嵌套组件中的内容?我怎么会得到以下结果:
<p>parent</p>
<p>child</p>
角4 – Cocowalla
标题状态正如你可以看到'进口{isPresent } from'angular2/src/facade/lang'; '这适用于angular2.0.0-beta.15。我想用@Deprecated标记这个 – Serginho