logo
  • 教程列表
  • SO官方文档
  • 指令
    • ngFor
    • 属性指令
    • Component 是带模板的指令
    • 结构指令
    • 自定义指令
    • 复制到剪贴板指令
    • 测试自定义指令
  1. StackOverflow 文档
  2. Angular 2 教程
  3. 指令
  4. Component 是带模板的指令

Component 是带模板的指令

Created: November-22, 2018

import { Component } from '@angular/core';
@Component({
  selector: 'my-app',
  template: `
    <h1>Angular 2 App</h1>
    <p>Component is directive with template</p>
  `
})
export class AppComponent {
}
  • 结构指令
  • 属性指令

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明