From 84ca050416c8f5f996234174260a8de4a80afdaa Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Mon, 14 Nov 2016 19:02:54 +0000 Subject: [PATCH] change let to const in bootstrap --- .../upgrade-module/ts/app/1-2-hybrid-bootstrap/app.module.ts | 2 +- .../upgrade-module/ts/app/1-to-2-projection/app.module.ts | 2 +- .../upgrade-module/ts/app/1-to-2-providers/app.module.ts | 2 +- .../upgrade-module/ts/app/2-to-1-providers/app.module.ts | 2 +- .../upgrade-module/ts/app/2-to-1-transclusion/app.module.ts | 2 +- .../_examples/upgrade-module/ts/app/downgrade-io/app.module.ts | 2 +- .../upgrade-module/ts/app/downgrade-static/app.module.ts | 2 +- .../_examples/upgrade-module/ts/app/upgrade-io/app.module.ts | 2 +- .../upgrade-module/ts/app/upgrade-static/app.module.ts | 2 +- .../docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main-aot.ts | 2 +- public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main.ts | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/public/docs/_examples/upgrade-module/ts/app/1-2-hybrid-bootstrap/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/1-2-hybrid-bootstrap/app.module.ts index c8f1b4e49b..7a6b82cf92 100644 --- a/public/docs/_examples/upgrade-module/ts/app/1-2-hybrid-bootstrap/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/1-2-hybrid-bootstrap/app.module.ts @@ -23,7 +23,7 @@ angular.module('heroApp', []) import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 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}); }); // #enddocregion bootstrap diff --git a/public/docs/_examples/upgrade-module/ts/app/1-to-2-projection/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/1-to-2-projection/app.module.ts index 17e05bf0e0..080f80f0ef 100644 --- a/public/docs/_examples/upgrade-module/ts/app/1-to-2-projection/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/1-to-2-projection/app.module.ts @@ -31,6 +31,6 @@ angular.module('heroApp', []) }) as angular.IDirectiveFactory); 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/1-to-2-providers/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/1-to-2-providers/app.module.ts index 5d269f65c5..5754494853 100644 --- a/public/docs/_examples/upgrade-module/ts/app/1-to-2-providers/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/1-to-2-providers/app.module.ts @@ -41,6 +41,6 @@ angular.module('heroApp', []) 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/2-to-1-providers/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/2-to-1-providers/app.module.ts index 65c3dbcc8e..91235a1485 100644 --- a/public/docs/_examples/upgrade-module/ts/app/2-to-1-providers/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/2-to-1-providers/app.module.ts @@ -29,6 +29,6 @@ angular.module('heroApp', []) // #enddocregion register 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/2-to-1-transclusion/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/2-to-1-transclusion/app.module.ts index 0ce9170082..599e711b5e 100644 --- a/public/docs/_examples/upgrade-module/ts/app/2-to-1-transclusion/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/2-to-1-transclusion/app.module.ts @@ -34,6 +34,6 @@ angular.module('heroApp', []) ); 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts index b9b67eceb1..1e836cfc9d 100644 --- a/public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/downgrade-io/app.module.ts @@ -38,6 +38,6 @@ angular.module('heroApp', []) // #enddocregion downgradecomponent 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts index d7a3aba388..4d621d2f03 100644 --- a/public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/downgrade-static/app.module.ts @@ -37,6 +37,6 @@ angular.module('heroApp', []) // #enddocregion downgradecomponent 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts index 0ce9170082..599e711b5e 100644 --- a/public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/upgrade-io/app.module.ts @@ -34,6 +34,6 @@ angular.module('heroApp', []) ); 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}); }); diff --git a/public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts b/public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts index 3d252626d7..401963c35e 100644 --- a/public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts +++ b/public/docs/_examples/upgrade-module/ts/app/upgrade-static/app.module.ts @@ -36,6 +36,6 @@ angular.module('heroApp', []) ); 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}); }); diff --git a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main-aot.ts b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main-aot.ts index 6e25d85406..e43d57a538 100644 --- a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main-aot.ts +++ b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main-aot.ts @@ -5,7 +5,7 @@ import { UpgradeModule } from '@angular/upgrade/static'; import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory'; 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']); }); // #enddocregion bootstrap diff --git a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main.ts b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main.ts index 0fd102449a..886e8ffac8 100644 --- a/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main.ts +++ b/public/docs/_examples/upgrade-phonecat-2-hybrid/ts/app/main.ts @@ -5,7 +5,7 @@ import { UpgradeModule } from '@angular/upgrade/static'; import { AppModule } from './app.module'; 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']); }); // #enddocregion bootstrap