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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -