摘要: direictives/index.js:module.exports = function(ngModule) { //register all the directives here require('./hello')(ngModule);};directives/hello.js... 阅读全文
posted @ 2015-04-13 03:20 Zhentiw 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ... 阅读全文
posted @ 2015-04-13 02:49 Zhentiw 阅读(1786) 评论(0) 推荐(0) 编辑