4
나는 다음과 같은 자식 요소를 가지고 있고 그것은 상속 상위 구성 요소입니다 : 이제각도 4 - 템플릿 상속
@Component({
template: `<p>child</p>`
})
export class EditChildComponent extends EditViewComponent{
constructor(){
super();
}
}
@Component({
template: `<p>parent</p>`
})
export class EditViewComponent{
constructor(){
}
}
당신이 ng-과 함께 할 것 같은 ChildComponents 템플릿에 EditViewComponent의 템플릿을 배치 할 수있는 방법이 중첩 된 구성 요소의 내용? 이 문서에 대한
<p>parent</p>
<p>child</p>
당신이 '볼 수 있듯이 4 – Cocowalla
각도 제목 상태 가져 오기 {isPresent }에서 'angular2/src/facade/lang'; '이것은 angular2.0.0-beta.15에서 작동합니다. 이것을 @Deprecated로 태그 지정하고 싶습니다. – Serginho