Skip to content

Instantly share code, notes, and snippets.

@martinadamsdev
Forked from beginor/angular-require-shim.js
Created October 10, 2020 02:37
Show Gist options
  • Save martinadamsdev/fb0ad3985cf8950448e8f2eede80e026 to your computer and use it in GitHub Desktop.
Save martinadamsdev/fb0ad3985cf8950448e8f2eede80e026 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