Skip to content

Instantly share code, notes, and snippets.

@christophermina
Created October 12, 2014 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophermina/7a5785224f8818d31121 to your computer and use it in GitHub Desktop.
Save christophermina/7a5785224f8818d31121 to your computer and use it in GitHub Desktop.
define([
'bower_packages/ocLazyLoad/dist/ocLazyLoad'
], function() {
var module = angular.module('mainApp', ['oc.lazyload']);
module.config(['$ocLazyLoadProvider', function ($ocLazyLoadProvider) {
$ocLazyLoadProvider.config({
loadedModules: ['mainApp'],
asyncLoader: require
});
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment