0
我想知道如何将jquery插入到组件中。例如如何将jQuery插入到Angular 1.5组件中
在我webpack.conf文件:
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
在我的组件文件:
module.exports = {
templateUrl: 'app/example.html',
controller: ['$', exampleController]
};
function exampleController(){
console.log('exampleController');
};
堆栈:角1.5,JavaScript中,NPM和的WebPack
Thanks @ryanlutgen –