UNPKG

@angular/upgrade

Version:

Angular - the library for easing update from v1 to v2

117 lines (111 loc) 4.02 kB
/** * @license Angular v21.0.3 * (c) 2010-2025 Google LLC. https://angular.dev/ * License: MIT */ function noNg() { throw new Error('AngularJS v1.x is not loaded!'); } const noNgElement = () => noNg(); noNgElement.cleanData = noNg; let angular = { bootstrap: noNg, module: noNg, element: noNgElement, injector: noNg, version: undefined, resumeBootstrap: noNg, getTestability: noNg }; try { if (window.hasOwnProperty('angular')) { angular = window.angular; } } catch {} function setAngularLib(ng) { setAngularJSGlobal(ng); } function getAngularLib() { return getAngularJSGlobal(); } function setAngularJSGlobal(ng) { angular = ng; } function getAngularJSGlobal() { return angular; } const bootstrap = (e, modules, config) => angular.bootstrap(e, modules, config); const module_ = (prefix, dependencies) => angular.module(prefix, dependencies); const element = e => angular.element(e); element.cleanData = nodes => angular.element.cleanData(nodes); const injector = (modules, strictDi) => angular.injector(modules, strictDi); const resumeBootstrap = () => angular.resumeBootstrap(); const getTestability = e => angular.getTestability(e); var angular1 = /*#__PURE__*/Object.freeze({ __proto__: null, bootstrap: bootstrap, element: element, getAngularJSGlobal: getAngularJSGlobal, getAngularLib: getAngularLib, getTestability: getTestability, injector: injector, module_: module_, resumeBootstrap: resumeBootstrap, setAngularJSGlobal: setAngularJSGlobal, setAngularLib: setAngularLib }); const $COMPILE = '$compile'; const $CONTROLLER = '$controller'; const $DELEGATE = '$delegate'; const $EXCEPTION_HANDLER = '$exceptionHandler'; const $HTTP_BACKEND = '$httpBackend'; const $INJECTOR = '$injector'; const $INTERVAL = '$interval'; const $PARSE = '$parse'; const $PROVIDE = '$provide'; const $ROOT_ELEMENT = '$rootElement'; const $ROOT_SCOPE = '$rootScope'; const $SCOPE = '$scope'; const $TEMPLATE_CACHE = '$templateCache'; const $TEMPLATE_REQUEST = '$templateRequest'; const $$TESTABILITY = '$$testability'; const COMPILER_KEY = '$$angularCompiler'; const DOWNGRADED_MODULE_COUNT_KEY = '$$angularDowngradedModuleCount'; const GROUP_PROJECTABLE_NODES_KEY = '$$angularGroupProjectableNodes'; const INJECTOR_KEY = '$$angularInjector'; const LAZY_MODULE_REF = '$$angularLazyModuleRef'; const NG_ZONE_KEY = '$$angularNgZone'; const UPGRADE_APP_TYPE_KEY = '$$angularUpgradeAppType'; const REQUIRE_INJECTOR = '?^^' + INJECTOR_KEY; const REQUIRE_NG_MODEL = '?ngModel'; const UPGRADE_MODULE_NAME = '$$UpgradeModule'; var constants = /*#__PURE__*/Object.freeze({ __proto__: null, $$TESTABILITY: $$TESTABILITY, $COMPILE: $COMPILE, $CONTROLLER: $CONTROLLER, $DELEGATE: $DELEGATE, $EXCEPTION_HANDLER: $EXCEPTION_HANDLER, $HTTP_BACKEND: $HTTP_BACKEND, $INJECTOR: $INJECTOR, $INTERVAL: $INTERVAL, $PARSE: $PARSE, $PROVIDE: $PROVIDE, $ROOT_ELEMENT: $ROOT_ELEMENT, $ROOT_SCOPE: $ROOT_SCOPE, $SCOPE: $SCOPE, $TEMPLATE_CACHE: $TEMPLATE_CACHE, $TEMPLATE_REQUEST: $TEMPLATE_REQUEST, COMPILER_KEY: COMPILER_KEY, DOWNGRADED_MODULE_COUNT_KEY: DOWNGRADED_MODULE_COUNT_KEY, GROUP_PROJECTABLE_NODES_KEY: GROUP_PROJECTABLE_NODES_KEY, INJECTOR_KEY: INJECTOR_KEY, LAZY_MODULE_REF: LAZY_MODULE_REF, NG_ZONE_KEY: NG_ZONE_KEY, REQUIRE_INJECTOR: REQUIRE_INJECTOR, REQUIRE_NG_MODEL: REQUIRE_NG_MODEL, UPGRADE_APP_TYPE_KEY: UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME: UPGRADE_MODULE_NAME }); export { $$TESTABILITY, $COMPILE, $CONTROLLER, $DELEGATE, $HTTP_BACKEND, $INJECTOR, $INTERVAL, $PARSE, $PROVIDE, $ROOT_ELEMENT, $ROOT_SCOPE, $SCOPE, $TEMPLATE_CACHE, DOWNGRADED_MODULE_COUNT_KEY, INJECTOR_KEY, LAZY_MODULE_REF, REQUIRE_INJECTOR, REQUIRE_NG_MODEL, UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME, angular1, bootstrap, constants, element, getAngularJSGlobal, getAngularLib, injector, module_, setAngularJSGlobal, setAngularLib }; //# sourceMappingURL=_constants-chunk.mjs.map