(angular)
| 2358 | |
| 2359 | |
| 2360 | function publishExternalAPI(angular) { |
| 2361 | extend(angular, { |
| 2362 | 'bootstrap': bootstrap, |
| 2363 | 'copy': copy, |
| 2364 | 'extend': extend, |
| 2365 | 'merge': merge, |
| 2366 | 'equals': equals, |
| 2367 | 'element': jqLite, |
| 2368 | 'forEach': forEach, |
| 2369 | 'injector': createInjector, |
| 2370 | 'noop': noop, |
| 2371 | 'bind': bind, |
| 2372 | 'toJson': toJson, |
| 2373 | 'fromJson': fromJson, |
| 2374 | 'identity': identity, |
| 2375 | 'isUndefined': isUndefined, |
| 2376 | 'isDefined': isDefined, |
| 2377 | 'isString': isString, |
| 2378 | 'isFunction': isFunction, |
| 2379 | 'isObject': isObject, |
| 2380 | 'isNumber': isNumber, |
| 2381 | 'isElement': isElement, |
| 2382 | 'isArray': isArray, |
| 2383 | 'version': version, |
| 2384 | 'isDate': isDate, |
| 2385 | 'lowercase': lowercase, |
| 2386 | 'uppercase': uppercase, |
| 2387 | 'callbacks': {counter: 0}, |
| 2388 | 'getTestability': getTestability, |
| 2389 | '$$minErr': minErr, |
| 2390 | '$$csp': csp, |
| 2391 | 'reloadWithDebugInfo': reloadWithDebugInfo |
| 2392 | }); |
| 2393 | |
| 2394 | angularModule = setupModuleLoader(window); |
| 2395 | try { |
| 2396 | angularModule('ngLocale'); |
| 2397 | } catch (e) { |
| 2398 | angularModule('ngLocale', []).provider('$locale', $LocaleProvider); |
| 2399 | } |
| 2400 | |
| 2401 | angularModule('ng', ['ngLocale'], ['$provide', |
| 2402 | function ngModule($provide) { |
| 2403 | // $$sanitizeUriProvider needs to be before $compileProvider as it is used by it. |
| 2404 | $provide.provider({ |
| 2405 | $$sanitizeUri: $$SanitizeUriProvider |
| 2406 | }); |
| 2407 | $provide.provider('$compile', $CompileProvider). |
| 2408 | directive({ |
| 2409 | a: htmlAnchorDirective, |
| 2410 | input: inputDirective, |
| 2411 | textarea: inputDirective, |
| 2412 | form: formDirective, |
| 2413 | script: scriptDirective, |
| 2414 | select: selectDirective, |
| 2415 | style: styleDirective, |
| 2416 | option: optionDirective, |
| 2417 | ngBind: ngBindDirective, |
no test coverage detected