cleanup(platform): removed webworker and server deprecated apis (#10745)

This commit is contained in:
Victor Savkin
2016-08-15 13:44:01 -07:00
committed by vikerman
parent 73c0a9daaf
commit 60b10134df
29 changed files with 94 additions and 438 deletions

View File

@ -6,10 +6,16 @@
* found in the LICENSE file at https://angular.io/license
*/
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
import {NgModule} from '@angular/core';
import {WorkerAppModule} from '@angular/platform-browser';
import {platformWorkerAppDynamic} from '@angular/platform-browser-dynamic';
import {ImageDemo} from './index_common';
export function main() {
bootstrapWorkerApp(ImageDemo);
@NgModule({imports: [WorkerAppModule], bootstrap: [ImageDemo]})
class ExampleModule {
}
export function main() {
platformWorkerAppDynamic().bootstrapModule(ExampleModule);
}

View File

@ -6,10 +6,16 @@
* found in the LICENSE file at https://angular.io/license
*/
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
import {NgModule} from '@angular/core';
import {WorkerAppModule} from '@angular/platform-browser';
import {platformWorkerAppDynamic} from '@angular/platform-browser-dynamic';
import {InputCmp} from './index_common';
export function main() {
bootstrapWorkerApp(InputCmp);
@NgModule({imports: [WorkerAppModule], bootstrap: [InputCmp]})
class ExampleModule {
}
export function main() {
platformWorkerAppDynamic().bootstrapModule(ExampleModule);
}

View File

@ -6,10 +6,16 @@
* found in the LICENSE file at https://angular.io/license
*/
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
import {NgModule} from '@angular/core';
import {WorkerAppModule} from '@angular/platform-browser';
import {platformWorkerAppDynamic} from '@angular/platform-browser-dynamic';
import {HelloCmp} from './index_common';
export function main() {
bootstrapWorkerApp(HelloCmp);
@NgModule({imports: [WorkerAppModule], bootstrap: [HelloCmp]})
class ExampleModule {
}
export function main() {
platformWorkerAppDynamic().bootstrapModule(ExampleModule);
}

View File

@ -6,9 +6,16 @@
* found in the LICENSE file at https://angular.io/license
*/
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
import {NgModule} from '@angular/core';
import {WorkerAppModule} from '@angular/platform-browser';
import {platformWorkerAppDynamic} from '@angular/platform-browser-dynamic';
import {App} from './index_common';
export function main() {
bootstrapWorkerApp(App);
@NgModule({imports: [WorkerAppModule], bootstrap: [App]})
class ExampleModule {
}
export function main() {
platformWorkerAppDynamic().bootstrapModule(ExampleModule);
}

View File

@ -6,10 +6,16 @@
* found in the LICENSE file at https://angular.io/license
*/
import {bootstrapWorkerApp} from '@angular/platform-browser-dynamic';
import {NgModule} from '@angular/core';
import {WorkerAppModule} from '@angular/platform-browser';
import {platformWorkerAppDynamic} from '@angular/platform-browser-dynamic';
import {TodoApp} from './index_common';
export function main() {
bootstrapWorkerApp(TodoApp);
@NgModule({imports: [WorkerAppModule], bootstrap: [TodoApp]})
class ExampleModule {
}
export function main() {
platformWorkerAppDynamic().bootstrapModule(ExampleModule);
}