angular.js - angulae downloaded in node.js cannot be imported
过去多啦不再A梦2017-05-15 17:07:01
0
3
553
I downloaded the angularjs module using node.js. I don’t know how to import it into the html file in webstorm11. Can someone help me? (I tried dragging the file directly into the same folder and importing it using src, but it was unsuccessful)
Use bower to install the angular package, and the rest is a pure write path. . . I just realized that the picture cannot be enlarged to view = =
Just import according to the file path, or if you use gulp, you can use gulp-inject
The package is downloaded from npm, not nodejs.
It is recommended to use webpack to package js files.