logo
  • 教程列表
  • SO官方文檔
  • 在 Angular 2 中使用本機 Web 元件
    • 在模組中包含自定義元素架構
    • 在模板中使用 web 元件
  1. StackOverflow 文件
  2. Angular 2 教程
  3. 在 Angular 2 中使用本機 Web 元件
  4. 在模板中使用 web 元件

在模板中使用 web 元件

Created: November-22, 2018

import { Component } from '@angular/core';

@Component({
  selector: 'myapp-about',
  template: `<my-webcomponent></my-webcomponent>`
})
export class AboutComponent { }
  • 在模組中包含自定義元素架構

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明