imehesz / angularjs-lazy-loading-with-requirejs

A demonstration of lazy loading in AngularJS using Asynchronous Module Definitions with RequireJS.

Home Page:http://ify.io/entry/172/lazy-loading-in-angularjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angularjs-lazy-loading-with-requirejs

A demonstration of lazy loading in AngularJS using Asynchronous Module Definitions (AMD) with RequireJS. This sample application was created to accompany the blog post entitled 'Lazy Loading In AngularJS'.

How it works

Simple specify your routes along with its lazy dependencies in app/scripts/appRoutes.js

How to run the demo

Either serve the app folder of this repo up with your web server or

  • Install node.js
  • Run npm install from within the root project directory to install relevant dependencies
  • Run node server.js from within the root project directory to start the app

About

A demonstration of lazy loading in AngularJS using Asynchronous Module Definitions with RequireJS.

http://ify.io/entry/172/lazy-loading-in-angularjs/