Files
angular.js/test/e2e/fixtures/loader/script.js
T
Georgios Kalpakas d406a15e8c fix(modules): allow modules to be loaded in any order when using angular-loader
Some modules used to assume that the angular helpers would always be available when their script was
executed. This could be a problem when using `angular-loader` and the module file happened to get
loaded before the core `angular.js` file.
This commit fixes the issue by delaying the access to angular helpers, until they are guaranteed to
be available.

Affected modules:
- `ngAnimate`
- `ngMessageFormat`
- `ngMessages`
- `ngRoute`
- `ngSanitize`

Fixes #9140

Closes #14794
2016-06-17 23:56:14 +03:00

17 lines
300 B
JavaScript

angular.
module('test', [
'ngTouch',
'ngSanitize',
'ngRoute',
'ngResource',
'ngParseExt',
'ngMessages',
'ngMessageFormat',
'ngCookies',
'ngAria',
'ngAnimate'
]).
controller('TestCtrl', function TestCtrl($scope) {
$scope.text = 'Hello, world!';
});