change let to const in bootstrap
This commit is contained in:
parent
04b88d5534
commit
84ca050416
|
@ -23,7 +23,7 @@ angular.module('heroApp', [])
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
// #enddocregion bootstrap
|
// #enddocregion bootstrap
|
||||||
|
|
|
@ -31,6 +31,6 @@ angular.module('heroApp', [])
|
||||||
}) as angular.IDirectiveFactory);
|
}) as angular.IDirectiveFactory);
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -41,6 +41,6 @@ angular.module('heroApp', [])
|
||||||
|
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,6 +29,6 @@ angular.module('heroApp', [])
|
||||||
// #enddocregion register
|
// #enddocregion register
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,6 +34,6 @@ angular.module('heroApp', [])
|
||||||
);
|
);
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -38,6 +38,6 @@ angular.module('heroApp', [])
|
||||||
// #enddocregion downgradecomponent
|
// #enddocregion downgradecomponent
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -37,6 +37,6 @@ angular.module('heroApp', [])
|
||||||
// #enddocregion downgradecomponent
|
// #enddocregion downgradecomponent
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,6 +34,6 @@ angular.module('heroApp', [])
|
||||||
);
|
);
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -36,6 +36,6 @@ angular.module('heroApp', [])
|
||||||
);
|
);
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true});
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { UpgradeModule } from '@angular/upgrade/static';
|
||||||
import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory';
|
import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory';
|
||||||
|
|
||||||
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory).then(platformRef => {
|
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.documentElement, ['phonecatApp']);
|
upgrade.bootstrap(document.documentElement, ['phonecatApp']);
|
||||||
});
|
});
|
||||||
// #enddocregion bootstrap
|
// #enddocregion bootstrap
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { UpgradeModule } from '@angular/upgrade/static';
|
||||||
import { AppModule } from './app.module';
|
import { AppModule } from './app.module';
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => {
|
||||||
let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
const upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule;
|
||||||
upgrade.bootstrap(document.documentElement, ['phonecatApp']);
|
upgrade.bootstrap(document.documentElement, ['phonecatApp']);
|
||||||
});
|
});
|
||||||
// #enddocregion bootstrap
|
// #enddocregion bootstrap
|
||||||
|
|
Loading…
Reference in New Issue