d406a15e8c
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
17 lines
300 B
JavaScript
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!';
|
|
});
|