From b342d24ef3bd7d55ef6a19927f794fc5c28d5b1e Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Sat, 12 Nov 2016 11:00:00 +0000 Subject: [PATCH] add typing to UpgradeModule DI --- .../upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts | 2 +- .../upgrade-adapter/ts/app/1-to-2-projection/app.module.ts | 2 +- .../upgrade-adapter/ts/app/1-to-2-providers/app.module.ts | 2 +- .../upgrade-adapter/ts/app/2-to-1-providers/app.module.ts | 2 +- .../upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts | 2 +- .../_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts | 2 +- .../upgrade-adapter/ts/app/downgrade-static/app.module.ts | 2 +- .../_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts | 2 +- .../upgrade-adapter/ts/app/upgrade-static/app.module.ts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts index 9e54c471e3..963bfcde33 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-2-hybrid-bootstrap/app.module.ts @@ -22,7 +22,7 @@ angular.module('heroApp', []) // #docregion bootstrap platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); // #enddocregion bootstrap diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts index a820ac438c..ced1fa37f6 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-projection/app.module.ts @@ -31,6 +31,6 @@ angular.module('heroApp', []) })); platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts index e1ef0a7ea4..da969ba17a 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/1-to-2-providers/app.module.ts @@ -36,6 +36,6 @@ angular.module('heroApp', []) // #enddocregion register platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts index 39b8488653..8967930aba 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-providers/app.module.ts @@ -25,6 +25,6 @@ angular.module('heroApp', []) // #enddocregion register platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts index 03a41c3166..abf395aff4 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/2-to-1-transclusion/app.module.ts @@ -31,6 +31,6 @@ angular.module('heroApp', []) .directive('myContainer', downgradeComponent({component: ContainerComponent})); platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts index bcdcb80cab..c2820f56a1 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/downgrade-io/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/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); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts index 0c9d2612fa..f21b4a5183 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/downgrade-static/app.module.ts @@ -32,6 +32,6 @@ angular.module('heroApp', []) // #enddocregion downgradecomponent platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts index 03a41c3166..abf395aff4 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-io/app.module.ts @@ -31,6 +31,6 @@ angular.module('heroApp', []) .directive('myContainer', downgradeComponent({component: ContainerComponent})); platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); }); diff --git a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts index 03a41c3166..abf395aff4 100644 --- a/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts +++ b/public/docs/_examples/upgrade-adapter/ts/app/upgrade-static/app.module.ts @@ -31,6 +31,6 @@ angular.module('heroApp', []) .directive('myContainer', downgradeComponent({component: ContainerComponent})); platformBrowserDynamic().bootstrapModule(AppModule).then(platformRef => { - let upgrade = platformRef.injector.get(UpgradeModule); + let upgrade = platformRef.injector.get(UpgradeModule) as UpgradeModule; upgrade.bootstrap(document.body, ['heroApp'], {strictDi: true}); });