摘要:
direictives/index.js:module.exports = function(ngModule) { //register all the directives here require('./hello')(ngModule);};directives/hello.js... 阅读全文
摘要:
1. Install webpack & angular:npm install webpack angular2. Create webpack.config.js file:module.exports = { context: __dirname + '/app', entry: ... 阅读全文