찾다

 >  Q&A  >  본문

angular.js -Angularjs 4 구성 요소의 선택기는 무엇에 사용됩니까?

@Component({
선택기: 'hero-detail',
템플릿: `
<p *ngIf="hero">

으아악

</p>
`
})
선택기는 어떤 용도로 사용되나요?

黄舟黄舟2823일 전923

모든 응답(1)나는 대답할 것이다

  • typecho

    typecho2017-06-13 09:24:51

    selector就是template컨테이너

    여기selectorhero-detail,那么下面的template会显示在<hero-detail></hero-detail>이런 용기에

    회신하다
    0
  • 취소회신하다