2011-07-17 08:05:43 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
|
|
2011-11-14 23:08:21 +00:00
|
|
|
|
/**
|
|
|
|
|
|
* @ngdoc property
|
|
|
|
|
|
* @name angular.version
|
|
|
|
|
|
* @description
|
|
|
|
|
|
* An object that contains information about the current AngularJS version. This object has the
|
|
|
|
|
|
* following properties:
|
|
|
|
|
|
*
|
|
|
|
|
|
* - `full` – `{string}` – Full version string, such as "0.9.18".
|
|
|
|
|
|
* - `major` – `{number}` – Major version number, such as "0".
|
|
|
|
|
|
* - `minor` – `{number}` – Minor version number, such as "9".
|
|
|
|
|
|
* - `dot` – `{number}` – Dot version number, such as "18".
|
|
|
|
|
|
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
|
|
|
|
|
|
*/
|
|
|
|
|
|
var version = {
|
2012-10-21 06:37:59 +00:00
|
|
|
|
full: '"NG_VERSION_FULL"', // all of these placeholder strings will be replaced by grunt's
|
|
|
|
|
|
major: "NG_VERSION_MAJOR", // package task
|
2011-11-14 23:08:21 +00:00
|
|
|
|
minor: "NG_VERSION_MINOR",
|
|
|
|
|
|
dot: "NG_VERSION_DOT",
|
|
|
|
|
|
codeName: '"NG_VERSION_CODENAME"'
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function publishExternalAPI(angular){
|
|
|
|
|
|
extend(angular, {
|
|
|
|
|
|
'bootstrap': bootstrap,
|
|
|
|
|
|
'copy': copy,
|
|
|
|
|
|
'extend': extend,
|
|
|
|
|
|
'equals': equals,
|
|
|
|
|
|
'element': jqLite,
|
|
|
|
|
|
'forEach': forEach,
|
2012-01-12 19:06:10 +00:00
|
|
|
|
'injector': createInjector,
|
2011-11-14 23:08:21 +00:00
|
|
|
|
'noop':noop,
|
|
|
|
|
|
'bind':bind,
|
|
|
|
|
|
'toJson': toJson,
|
|
|
|
|
|
'fromJson': fromJson,
|
|
|
|
|
|
'identity':identity,
|
|
|
|
|
|
'isUndefined': isUndefined,
|
|
|
|
|
|
'isDefined': isDefined,
|
|
|
|
|
|
'isString': isString,
|
|
|
|
|
|
'isFunction': isFunction,
|
|
|
|
|
|
'isObject': isObject,
|
|
|
|
|
|
'isNumber': isNumber,
|
|
|
|
|
|
'isElement': isElement,
|
|
|
|
|
|
'isArray': isArray,
|
|
|
|
|
|
'version': version,
|
|
|
|
|
|
'isDate': isDate,
|
|
|
|
|
|
'lowercase': lowercase,
|
2011-12-07 15:53:57 +00:00
|
|
|
|
'uppercase': uppercase,
|
2012-11-06 22:35:47 +00:00
|
|
|
|
'callbacks': {counter: 0},
|
|
|
|
|
|
'noConflict': noConflict
|
2011-11-14 23:08:21 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
2012-01-07 02:10:47 +00:00
|
|
|
|
angularModule = setupModuleLoader(window);
|
|
|
|
|
|
try {
|
|
|
|
|
|
angularModule('ngLocale');
|
|
|
|
|
|
} catch (e) {
|
2012-03-08 23:59:32 +00:00
|
|
|
|
angularModule('ngLocale', []).provider('$locale', $LocaleProvider);
|
2012-01-07 02:10:47 +00:00
|
|
|
|
}
|
2011-11-14 23:08:21 +00:00
|
|
|
|
|
2012-01-12 19:06:10 +00:00
|
|
|
|
angularModule('ng', ['ngLocale'], ['$provide',
|
|
|
|
|
|
function ngModule($provide) {
|
2012-03-08 23:59:32 +00:00
|
|
|
|
$provide.provider('$compile', $CompileProvider).
|
2011-11-23 05:28:39 +00:00
|
|
|
|
directive({
|
|
|
|
|
|
a: htmlAnchorDirective,
|
|
|
|
|
|
input: inputDirective,
|
|
|
|
|
|
textarea: inputDirective,
|
2012-03-08 06:47:01 +00:00
|
|
|
|
form: formDirective,
|
|
|
|
|
|
script: scriptDirective,
|
2011-11-23 05:28:39 +00:00
|
|
|
|
select: selectDirective,
|
2012-02-28 22:43:37 +00:00
|
|
|
|
style: styleDirective,
|
2011-11-23 05:28:39 +00:00
|
|
|
|
option: optionDirective,
|
|
|
|
|
|
ngBind: ngBindDirective,
|
|
|
|
|
|
ngBindHtmlUnsafe: ngBindHtmlUnsafeDirective,
|
|
|
|
|
|
ngBindTemplate: ngBindTemplateDirective,
|
|
|
|
|
|
ngClass: ngClassDirective,
|
|
|
|
|
|
ngClassEven: ngClassEvenDirective,
|
|
|
|
|
|
ngClassOdd: ngClassOddDirective,
|
2012-04-27 22:20:54 +00:00
|
|
|
|
ngCsp: ngCspDirective,
|
2011-11-23 05:28:39 +00:00
|
|
|
|
ngCloak: ngCloakDirective,
|
|
|
|
|
|
ngController: ngControllerDirective,
|
2012-03-13 23:14:58 +00:00
|
|
|
|
ngForm: ngFormDirective,
|
2011-11-23 05:28:39 +00:00
|
|
|
|
ngHide: ngHideDirective,
|
|
|
|
|
|
ngInclude: ngIncludeDirective,
|
|
|
|
|
|
ngInit: ngInitDirective,
|
|
|
|
|
|
ngNonBindable: ngNonBindableDirective,
|
|
|
|
|
|
ngPluralize: ngPluralizeDirective,
|
|
|
|
|
|
ngRepeat: ngRepeatDirective,
|
|
|
|
|
|
ngShow: ngShowDirective,
|
|
|
|
|
|
ngSubmit: ngSubmitDirective,
|
|
|
|
|
|
ngStyle: ngStyleDirective,
|
|
|
|
|
|
ngSwitch: ngSwitchDirective,
|
2012-02-09 22:39:44 +00:00
|
|
|
|
ngSwitchWhen: ngSwitchWhenDirective,
|
|
|
|
|
|
ngSwitchDefault: ngSwitchDefaultDirective,
|
2011-11-23 05:28:39 +00:00
|
|
|
|
ngOptions: ngOptionsDirective,
|
2012-01-28 00:18:16 +00:00
|
|
|
|
ngView: ngViewDirective,
|
2012-02-16 01:16:02 +00:00
|
|
|
|
ngTransclude: ngTranscludeDirective,
|
|
|
|
|
|
ngModel: ngModelDirective,
|
|
|
|
|
|
ngList: ngListDirective,
|
|
|
|
|
|
ngChange: ngChangeDirective,
|
|
|
|
|
|
required: requiredDirective,
|
2012-03-23 20:04:52 +00:00
|
|
|
|
ngRequired: requiredDirective,
|
|
|
|
|
|
ngValue: ngValueDirective
|
2012-03-08 06:47:01 +00:00
|
|
|
|
}).
|
|
|
|
|
|
directive(ngAttributeAliasDirectives).
|
|
|
|
|
|
directive(ngEventDirectives);
|
2012-03-08 23:59:32 +00:00
|
|
|
|
$provide.provider({
|
2012-03-08 06:47:01 +00:00
|
|
|
|
$anchorScroll: $AnchorScrollProvider,
|
2013-03-20 23:24:23 +00:00
|
|
|
|
$animation: $AnimationProvider,
|
|
|
|
|
|
$animator: $AnimatorProvider,
|
2012-03-08 06:47:01 +00:00
|
|
|
|
$browser: $BrowserProvider,
|
|
|
|
|
|
$cacheFactory: $CacheFactoryProvider,
|
|
|
|
|
|
$controller: $ControllerProvider,
|
|
|
|
|
|
$document: $DocumentProvider,
|
|
|
|
|
|
$exceptionHandler: $ExceptionHandlerProvider,
|
|
|
|
|
|
$filter: $FilterProvider,
|
|
|
|
|
|
$interpolate: $InterpolateProvider,
|
|
|
|
|
|
$http: $HttpProvider,
|
|
|
|
|
|
$httpBackend: $HttpBackendProvider,
|
|
|
|
|
|
$location: $LocationProvider,
|
|
|
|
|
|
$log: $LogProvider,
|
|
|
|
|
|
$parse: $ParseProvider,
|
|
|
|
|
|
$route: $RouteProvider,
|
|
|
|
|
|
$routeParams: $RouteParamsProvider,
|
|
|
|
|
|
$rootScope: $RootScopeProvider,
|
|
|
|
|
|
$q: $QProvider,
|
|
|
|
|
|
$sniffer: $SnifferProvider,
|
|
|
|
|
|
$templateCache: $TemplateCacheProvider,
|
2012-05-23 06:05:26 +00:00
|
|
|
|
$timeout: $TimeoutProvider,
|
2012-03-08 06:47:01 +00:00
|
|
|
|
$window: $WindowProvider
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
]);
|
2012-04-10 21:29:49 +00:00
|
|
|
|
}
|