refactor(core): remove deprecated 'bootstrap' (#10831)
This commit is contained in:
@ -6,11 +6,22 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {NgModule} from '@angular/core';
|
||||
import {JSONP_PROVIDERS} from '@angular/http';
|
||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
|
||||
import {JsonpCmp} from './app/jsonp_comp';
|
||||
|
||||
export function main() {
|
||||
bootstrap(JsonpCmp, [JSONP_PROVIDERS]);
|
||||
@NgModule({
|
||||
bootstrap: [JsonpCmp],
|
||||
declarations: [JsonpCmp],
|
||||
providers: [JSONP_PROVIDERS],
|
||||
imports: [BrowserModule]
|
||||
})
|
||||
class ExampleModule {
|
||||
}
|
||||
|
||||
export function main() {
|
||||
platformBrowserDynamic().bootstrapModule(ExampleModule);
|
||||
}
|
||||
|
Reference in New Issue
Block a user