Skip to content

Instantly share code, notes, and snippets.

@beginor
Created November 11, 2014 06:42
Show Gist options
  • Save beginor/e57e596be4040c404044 to your computer and use it in GitHub Desktop.
Save beginor/e57e596be4040c404044 to your computer and use it in GitHub Desktop.
RequireJS Shim for AngularJS 1.3.0
requirejs.config({
baseUrl: 'scripts',
paths: {
'angular': 'lib/angular/angular',
'angular-animate': 'lib/angular/angular-animate',
'angular-aria': 'lib/angular/angular-aria',
'angular-cookies': 'lib/angular/angular-cookies',
'angular-messages': 'lib/angular/angular-messages',
'angular-mocks': 'lib/angular/angular-mocks',
'angular-resource': 'lib/angular/angular-resource',
'angular-route': 'lib/angular/angular-route',
'angular-sanitize': 'lib/angular/angular-sanitize',
'angular-scenario': 'lib/angular/angular-scenario',
'angular-touch': 'lib/angular/angular-touch'
},
shim: {
'angular' : { exports: 'angular' },
'angular-animate': { deps: ['angular'] },
'angular-aria': { deps: ['angular'] },
'angular-cookies': { deps: ['angular'] },
'angular-messages': { deps: ['angular'] },
'angular-mocks': { deps: ['angular'] },
'angular-resource': { deps: ['angular'] },
'angular-route': { deps: ['angular'] },
'angular-sanitize': { deps: ['angular'] },
'angular-scenario': { deps: ['angular'] },
'angular-touch': { deps: ['angular'] }
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment