angularjs - How to use Node modules on the client side? -
after installing packages via npm, such as:
$ npm install bootstrap
or
$ npm install angular
these saved inside "node_modules" default. how access them (link them) html page? can't possibly "href="/node_modules/", what's solution?
i imagine like:
var angular = require("angular");
but i'm not sure.
try use bower, or yeoman. bower - simplify process include js libs yeoman - build projects the libraries need.
Comments
Post a Comment