main.js 496 B

1234567891011121314151617181920212223
  1. requirejs.config({
  2. baseUrl: 'js/',
  3. paths: {
  4. 'jquery': 'jquery',
  5. 'angular': 'angular.min',
  6. 'test': 'testmodule',
  7. 'ngGrid': 'ng-grid-2.0.11.debug',
  8. 'ocLazyLoad': '../../../src/ocLazyLoad'
  9. },
  10. shim: {
  11. 'angular': ['jquery'],
  12. 'ocLazyLoad': ['angular'],
  13. 'ngGrid': ['angular'],
  14. 'lazymodule': ['test', 'ngGrid'],
  15. 'test': ['ocLazyLoad']
  16. }
  17. });
  18. // Start the main app logic.
  19. requirejs(['test'], function() {
  20. angular.bootstrap(document.body, ['test']);
  21. });