【文件属性】:
文件名称:angular-directive:Angular Express组件添加指令
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-24 21:58:32
JavaScript
角度指令
组件添加了Angular指令。
安装
要安装组件:
$ ngx install angular-directive
不知道ngx命令行工具是什么? 了解有关更多信息。
如何使用
安装组件后:
在_build/ngx-directive.directive.js编辑指令定义对象
在_build/ngx-directive.controller.js编辑指令控制器
在template.jade编辑指令template.jade
在_build/config.js更新指令名称和控制器名称
并将组件导入到Angular应用程序中:
// Angular main module
var ngModule = angular . module ( 'app' , [ ] ) ;
// Import component
import c from 'components/angul
【文件预览】:
angular-directive-master
----.gitignore(163B)
----ngx()
--------_build()
--------template.jade(25B)
----LICENSE(1KB)
----README.md(1KB)
----.editorconfig(223B)