摘要: angular 自定义web组件: 首先创建一个名为myCustom的组件。 引入app.module: 全局注册: app.component: Ok,这样完成了'my-test'的全局,接下来可以像是用web component那样使用它了. 进入我们的主html: Index.html 注意: 阅读全文
posted @ 2018-04-15 14:31 Jnew 阅读(1535) 评论(0) 推荐(0) 编辑