refactor(upgrade): rename module
constant to avoid webpack bug (#30058)
When targeting ES2015 (as is the default in cli@8), `const` is not downleveled to `var` and thus declaring `const module` throws an error due to webpack wrapping the code in a function call with a `module` argument (even when compiling for the `web` environment). Related: webpack/webpack#7369 Fixes #30050 PR Close #30058
This commit is contained in:

committed by
Andrew Kushnir

parent
a9379e0ed2
commit
abcb2cf9a0
@ -9,7 +9,7 @@
|
||||
import {Injector, NgModuleFactory, NgModuleRef, StaticProvider} from '@angular/core';
|
||||
import {platformBrowser} from '@angular/platform-browser';
|
||||
|
||||
import {IInjectorService, IProvideService, module as angularModule} from '../../src/common/src/angular1';
|
||||
import {IInjectorService, IProvideService, module_ as angularModule} from '../../src/common/src/angular1';
|
||||
import {$INJECTOR, $PROVIDE, DOWNGRADED_MODULE_COUNT_KEY, INJECTOR_KEY, LAZY_MODULE_REF, UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME} from '../../src/common/src/constants';
|
||||
import {LazyModuleRef, UpgradeAppType, getDowngradedModuleCount, isFunction} from '../../src/common/src/util';
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
import {Injector, NgModule, NgZone, Testability} from '@angular/core';
|
||||
|
||||
import {IInjectorService, IIntervalService, IProvideService, ITestabilityService, bootstrap, element as angularElement, module as angularModule} from '../../src/common/src/angular1';
|
||||
import {IInjectorService, IIntervalService, IProvideService, ITestabilityService, bootstrap, element as angularElement, module_ as angularModule} from '../../src/common/src/angular1';
|
||||
import {$$TESTABILITY, $DELEGATE, $INJECTOR, $INTERVAL, $PROVIDE, INJECTOR_KEY, LAZY_MODULE_REF, UPGRADE_APP_TYPE_KEY, UPGRADE_MODULE_NAME} from '../../src/common/src/constants';
|
||||
import {LazyModuleRef, UpgradeAppType, controllerKey} from '../../src/common/src/util';
|
||||
|
||||
|
@ -60,7 +60,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1a', () => ({template: '{{ l(\'ng1a\') }}'}))
|
||||
.directive('ng1b', () => ({template: '{{ l(\'ng1b\') }}'}))
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
@ -118,7 +118,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'myApp', downgradeComponent({component: AppComponent}));
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
|
||||
|
@ -43,7 +43,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// the ng1 app module that will consume the downgraded component
|
||||
const ng1Module = angular
|
||||
.module('ng1', [])
|
||||
.module_('ng1', [])
|
||||
// create an ng1 facade of the ng2 component
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
@ -74,7 +74,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
$rootScope['items'] = [
|
||||
@ -123,7 +123,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive('ng1', () => ({
|
||||
transclude: true,
|
||||
template: '{{ prop }}(<ng-transclude></ng-transclude>)'
|
||||
@ -161,7 +161,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
// The ng-if on one of the projected children is here to make sure
|
||||
|
@ -23,7 +23,7 @@ withEachNg1Version(() => {
|
||||
afterEach(() => destroyPlatform());
|
||||
|
||||
it('should bind properties, events', async(() => {
|
||||
const ng1Module = angular.module('ng1', []).run(($rootScope: angular.IScope) => {
|
||||
const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => {
|
||||
$rootScope['name'] = 'world';
|
||||
$rootScope['dataA'] = 'A';
|
||||
$rootScope['dataB'] = 'B';
|
||||
@ -147,7 +147,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should bind properties to onpush components', async(() => {
|
||||
const ng1Module = angular.module('ng1', []).run(
|
||||
const ng1Module = angular.module_('ng1', []).run(
|
||||
($rootScope: angular.IScope) => { $rootScope['dataB'] = 'B'; });
|
||||
|
||||
@Component({
|
||||
@ -189,7 +189,7 @@ withEachNg1Version(() => {
|
||||
|
||||
it('should support two-way binding and event listener', async(() => {
|
||||
const listenerSpy = jasmine.createSpy('$rootScope.listener');
|
||||
const ng1Module = angular.module('ng1', []).run(($rootScope: angular.IScope) => {
|
||||
const ng1Module = angular.module_('ng1', []).run(($rootScope: angular.IScope) => {
|
||||
$rootScope['value'] = 'world';
|
||||
$rootScope['listener'] = listenerSpy;
|
||||
});
|
||||
@ -259,7 +259,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
$rootScope.value1 = 0;
|
||||
@ -323,7 +323,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest: false}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
@ -385,7 +385,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive(
|
||||
'ng2A', downgradeComponent({component: Ng2Component, propagateDigest: true}))
|
||||
.directive(
|
||||
@ -439,7 +439,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
const element = html(`
|
||||
@ -462,7 +462,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should bind to ng-model', async(() => {
|
||||
const ng1Module = angular.module('ng1', []).run(
|
||||
const ng1Module = angular.module_('ng1', []).run(
|
||||
($rootScope: angular.IScope) => { $rootScope['modelA'] = 'A'; });
|
||||
|
||||
let ng2Instance: Ng2;
|
||||
@ -534,7 +534,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive(
|
||||
'ng1',
|
||||
() => { return {template: '<div ng-if="!destroyIt"><ng2></ng2></div>'}; })
|
||||
@ -587,7 +587,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive('ng1', () => ({template: '<ng2-inner></ng2-inner>'}))
|
||||
.directive('ng2Inner', downgradeComponent({component: Ng2InnerComponent}))
|
||||
.directive('ng2Outer', downgradeComponent({component: Ng2OuterComponent}));
|
||||
@ -622,7 +622,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive(
|
||||
'ng1',
|
||||
[
|
||||
@ -667,7 +667,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'worksComponent', downgradeComponent({component: WorksComponent}));
|
||||
|
||||
const element = html('<works-component></works-component>');
|
||||
@ -695,7 +695,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'rootComponent', downgradeComponent({component: RootComponent}));
|
||||
|
||||
const element = html('<root-component></root-component>');
|
||||
@ -725,7 +725,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
const ng1Module =
|
||||
angular.module('ng1', [])
|
||||
angular.module_('ng1', [])
|
||||
.directive('parent', downgradeComponent({component: ParentComponent}))
|
||||
.directive('child', downgradeComponent({component: ChildComponent}));
|
||||
|
||||
@ -765,7 +765,7 @@ withEachNg1Version(() => {
|
||||
class LazyLoadedModule {
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
const element = html('<ng2></ng2>');
|
||||
@ -800,7 +800,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
|
||||
const ng1Module = angular.module('ng1', []).directive(
|
||||
const ng1Module = angular.module_('ng1', []).directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, downgradedModule: 'foo'}));
|
||||
|
||||
const element = html('<ng2></ng2>');
|
||||
|
@ -62,7 +62,7 @@ withEachNg1Version(() => {
|
||||
|
||||
const downModA = doDowngradeModule(Ng2ModuleA);
|
||||
const downModB = doDowngradeModule(Ng2ModuleB);
|
||||
const ng1Module = angular.module('ng1', [downModA, downModB])
|
||||
const ng1Module = angular.module_('ng1', [downModA, downModB])
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2ComponentA,
|
||||
downgradedModule: downModA, propagateDigest,
|
||||
@ -130,7 +130,7 @@ withEachNg1Version(() => {
|
||||
const downModA = doDowngradeModule(Ng2ModuleA);
|
||||
const downModB = doDowngradeModule(Ng2ModuleB);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [downModA, downModB])
|
||||
angular.module_('ng1', [downModA, downModB])
|
||||
.directive('ng1A', () => ({template: 'ng1A(<ng2-b ng-if="showB"></ng2-b>)'}))
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2ComponentA,
|
||||
@ -203,7 +203,7 @@ withEachNg1Version(() => {
|
||||
|
||||
const downModA = doDowngradeModule(Ng2ModuleA);
|
||||
const downModB = doDowngradeModule(Ng2ModuleB);
|
||||
const ng1Module = angular.module('ng1', [downModA, downModB])
|
||||
const ng1Module = angular.module_('ng1', [downModA, downModB])
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2ComponentA,
|
||||
downgradedModule: downModA, propagateDigest,
|
||||
@ -296,7 +296,7 @@ withEachNg1Version(() => {
|
||||
|
||||
const downModA = doDowngradeModule(Ng2ModuleA);
|
||||
const downModB = doDowngradeModule(Ng2ModuleB);
|
||||
const ng1Module = angular.module('ng1', [downModA, downModB])
|
||||
const ng1Module = angular.module_('ng1', [downModA, downModB])
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2ComponentA,
|
||||
downgradedModule: downModA, propagateDigest,
|
||||
@ -386,7 +386,7 @@ withEachNg1Version(() => {
|
||||
|
||||
const downMod = downgradeModule(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [downMod])
|
||||
angular.module_('ng1', [downMod])
|
||||
.directive(
|
||||
'ng2A', downgradeComponent({component: Ng2ComponentA, propagateDigest}))
|
||||
.directive(
|
||||
@ -494,7 +494,7 @@ withEachNg1Version(() => {
|
||||
|
||||
const downModA = doDowngradeModule(Ng2ModuleA);
|
||||
const downModB = doDowngradeModule(Ng2ModuleB);
|
||||
const ng1Module = angular.module('ng1', [downModA, downModB])
|
||||
const ng1Module = angular.module_('ng1', [downModA, downModB])
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2ComponentA,
|
||||
downgradedModule: downModA, propagateDigest,
|
||||
@ -560,7 +560,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2AComponent, propagateDigest}))
|
||||
.run(($rootScope: angular.IRootScopeService) => $rootScope.value = 0);
|
||||
@ -623,7 +623,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component, propagateDigest}))
|
||||
.value('ng1Value', 'foo');
|
||||
|
||||
@ -667,7 +667,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -702,7 +702,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -742,7 +742,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component, propagateDigest}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
$rootScope.attrVal = 'bar';
|
||||
@ -809,7 +809,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'test', downgradeComponent({component: TestComponent, propagateDigest}))
|
||||
.directive(
|
||||
@ -858,7 +858,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -908,7 +908,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'test', downgradeComponent({component: TestComponent, propagateDigest}))
|
||||
.directive(
|
||||
@ -978,7 +978,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component, propagateDigest}))
|
||||
.run(($rootScope: angular.IRootScopeService) => {
|
||||
rootScope = $rootScope;
|
||||
@ -1121,7 +1121,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -1178,7 +1178,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -1233,7 +1233,7 @@ withEachNg1Version(() => {
|
||||
platformBrowserDynamic(extraProviders).bootstrapModule(Ng2Module);
|
||||
const lazyModuleName = downgradeModule<Ng2Module>(bootstrapFn);
|
||||
const ng1Module =
|
||||
angular.module('ng1', [lazyModuleName])
|
||||
angular.module_('ng1', [lazyModuleName])
|
||||
.directive(
|
||||
'ng2', downgradeComponent({component: Ng2Component, propagateDigest}));
|
||||
|
||||
@ -1298,7 +1298,7 @@ withEachNg1Version(() => {
|
||||
afterEach(() => setTempInjectorRef(null !));
|
||||
|
||||
it('should throw if no downgraded module is included', async(() => {
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.value($EXCEPTION_HANDLER, errorSpy)
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2CompA,
|
||||
@ -1330,7 +1330,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should throw if the corresponding downgraded module is not included', async(() => {
|
||||
const ng1Module = angular.module('ng1', [downModA])
|
||||
const ng1Module = angular.module_('ng1', [downModA])
|
||||
.value($EXCEPTION_HANDLER, errorSpy)
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2CompA,
|
||||
@ -1356,7 +1356,7 @@ withEachNg1Version(() => {
|
||||
|
||||
it('should throw if `downgradedModule` is not specified and there are multiple downgraded modules',
|
||||
async(() => {
|
||||
const ng1Module = angular.module('ng1', [downModA, downModB])
|
||||
const ng1Module = angular.module_('ng1', [downModA, downModB])
|
||||
.value($EXCEPTION_HANDLER, errorSpy)
|
||||
.directive('ng2A', downgradeComponent({
|
||||
component: Ng2CompA,
|
||||
|
@ -64,7 +64,7 @@ withEachNg1Version(() => {
|
||||
// This module represents the AngularJS pieces of the application
|
||||
const ng1Module =
|
||||
angular
|
||||
.module('myExample', [])
|
||||
.module_('myExample', [])
|
||||
// This is an AngularJS component that will be upgraded
|
||||
.directive(
|
||||
'ng1',
|
||||
|
@ -40,8 +40,8 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// create the ng1 module that will import an ng2 service
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', []).factory('ng2Service', downgradeInjectable(Ng2Service));
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.factory('ng2Service', downgradeInjectable(Ng2Service));
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, html('<div>'), ng1Module)
|
||||
.then((upgrade) => {
|
||||
@ -71,7 +71,8 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// create the ng1 module that will import an ng2 service
|
||||
const ng1Module = angular.module('ng1Module', []).value('ng1Service', 'ng1 service value');
|
||||
const ng1Module =
|
||||
angular.module_('ng1Module', []).value('ng1Service', 'ng1 service value');
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, html('<div>'), ng1Module)
|
||||
.then((upgrade) => {
|
||||
@ -84,7 +85,7 @@ withEachNg1Version(() => {
|
||||
async(() => {
|
||||
let runBlockTriggered = false;
|
||||
|
||||
const ng1Module = angular.module('ng1Module', []).run([
|
||||
const ng1Module = angular.module_('ng1Module', []).run([
|
||||
INJECTOR_KEY,
|
||||
function(injector: Injector) {
|
||||
runBlockTriggered = true;
|
||||
@ -124,7 +125,7 @@ withEachNg1Version(() => {
|
||||
ngDoBootstrap() {}
|
||||
}
|
||||
|
||||
const ng1Module = angular.module('ng1Module', []);
|
||||
const ng1Module = angular.module_('ng1Module', []);
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, html('<div>'), ng1Module)
|
||||
.then(upgrade => expect(wrappedBootstrapCalled).toBe(true))
|
||||
|
@ -31,7 +31,7 @@ withEachNg1Version(() => {
|
||||
it('should handle deferred bootstrap', fakeAsync(() => {
|
||||
let applicationRunning = false;
|
||||
let stayedInTheZone: boolean = undefined !;
|
||||
const ng1Module = angular.module('ng1', []).run(() => {
|
||||
const ng1Module = angular.module_('ng1', []).run(() => {
|
||||
applicationRunning = true;
|
||||
stayedInTheZone = NgZone.isInAngularZone();
|
||||
});
|
||||
@ -50,7 +50,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should propagate return value of resumeBootstrap', fakeAsync(() => {
|
||||
const ng1Module = angular.module('ng1', []);
|
||||
const ng1Module = angular.module_('ng1', []);
|
||||
let a1Injector: angular.IInjectorService|undefined;
|
||||
ng1Module.run([
|
||||
'$injector', function($injector: angular.IInjectorService) { a1Injector = $injector; }
|
||||
@ -69,7 +69,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should wait for ng2 testability', fakeAsync(() => {
|
||||
const ng1Module = angular.module('ng1', []);
|
||||
const ng1Module = angular.module_('ng1', []);
|
||||
const element = html('<div></div>');
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
|
||||
@ -95,7 +95,7 @@ withEachNg1Version(() => {
|
||||
}));
|
||||
|
||||
it('should not wait for $interval', fakeAsync(() => {
|
||||
const ng1Module = angular.module('ng1', []);
|
||||
const ng1Module = angular.module_('ng1', []);
|
||||
const element = html('<div></div>');
|
||||
|
||||
bootstrap(platformBrowserDynamic(), Ng2Module, element, ng1Module).then((upgrade) => {
|
||||
|
@ -44,7 +44,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -84,7 +84,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -131,7 +131,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -172,7 +172,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(
|
||||
@ -216,7 +216,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(
|
||||
@ -267,7 +267,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.run(
|
||||
@ -312,7 +312,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.value(
|
||||
@ -363,7 +363,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.value(
|
||||
@ -433,7 +433,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.component('ng1C', ng1ComponentC)
|
||||
@ -505,7 +505,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -582,7 +582,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -663,7 +663,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -736,7 +736,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -833,7 +833,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -916,7 +916,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1006,7 +1006,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1074,7 +1074,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2X', downgradeComponent({component: Ng2ComponentX}));
|
||||
@ -1123,7 +1123,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1170,7 +1170,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1218,7 +1218,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1266,7 +1266,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1313,7 +1313,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1378,7 +1378,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1451,7 +1451,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1505,7 +1505,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1553,7 +1553,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.controller('Ng1Controller', class { text = 'GREAT'; })
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1607,7 +1607,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1663,7 +1663,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1', () => ng1Directive)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -1715,7 +1715,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -1782,7 +1782,7 @@ withEachNg1Version(() => {
|
||||
// Define `ng1Module`
|
||||
const mockExceptionHandler = jasmine.createSpy($EXCEPTION_HANDLER);
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.component('ng1C', ng1ComponentC)
|
||||
@ -1853,7 +1853,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const mockExceptionHandler = jasmine.createSpy($EXCEPTION_HANDLER);
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
.value($EXCEPTION_HANDLER, mockExceptionHandler);
|
||||
@ -1928,7 +1928,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.component('ng1C', ng1ComponentC)
|
||||
@ -1994,7 +1994,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -2051,7 +2051,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -2109,7 +2109,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.component('ng1C', ng1ComponentC)
|
||||
@ -2170,7 +2170,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}));
|
||||
|
||||
@ -2231,7 +2231,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -2297,7 +2297,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -2372,7 +2372,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -2445,7 +2445,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -2504,7 +2504,7 @@ withEachNg1Version(() => {
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module =
|
||||
angular.module('ng1Module', [])
|
||||
angular.module_('ng1Module', [])
|
||||
.value($EXCEPTION_HANDLER, (error: Error) => errorMessage = error.message)
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -2567,7 +2567,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -2660,7 +2660,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}))
|
||||
@ -2813,7 +2813,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -2943,7 +2943,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3013,7 +3013,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3080,7 +3080,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3150,7 +3150,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3212,7 +3212,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3294,7 +3294,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3373,7 +3373,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3474,7 +3474,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.directive('ng1A', () => ng1DirectiveA)
|
||||
.directive('ng1B', () => ng1DirectiveB)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
@ -3552,7 +3552,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -3609,7 +3609,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}));
|
||||
|
||||
@ -3673,7 +3673,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}));
|
||||
|
||||
@ -3740,7 +3740,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}));
|
||||
|
||||
@ -3809,7 +3809,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}));
|
||||
|
||||
@ -3863,7 +3863,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1Module', [])
|
||||
const ng1Module = angular.module_('ng1Module', [])
|
||||
.component('ng1', ng1Component)
|
||||
.directive('ng2', downgradeComponent({component: Ng2Component}));
|
||||
|
||||
@ -3927,7 +3927,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.component('ng1X', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}))
|
||||
.directive('ng2B', downgradeComponent({component: Ng2ComponentB}));
|
||||
@ -4035,7 +4035,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.component('ng1X', ng1Component)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}))
|
||||
.directive('ng2B', downgradeComponent({component: Ng2ComponentB}));
|
||||
@ -4180,7 +4180,7 @@ withEachNg1Version(() => {
|
||||
}
|
||||
|
||||
// Define `ng1Module`
|
||||
const ng1Module = angular.module('ng1', [])
|
||||
const ng1Module = angular.module_('ng1', [])
|
||||
.component('ng1A', ng1ComponentA)
|
||||
.component('ng1B', ng1ComponentB)
|
||||
.directive('ng2A', downgradeComponent({component: Ng2ComponentA}))
|
||||
|
Reference in New Issue
Block a user