A demonstration of lazy loading in AngularJS using RequireJS. This structure is AMD. So any plugin or directive should be in the same structure to function properly. But, why AMD?
- Install node.js
- Run
npm installfrom within the root project directory to install relevant dependencies - Run
bower installfrom within the root project directory to install library used by system salver atapp/libraryfolder. - Run
node server.jsfrom within the root project directory to start the app - Navigate to
http://localhost:3000/in your browser