X Tutup
Skip to content

Commit b6507e3

Browse files
Tim Blasikegluneq
authored andcommitted
feat(dart/transform): Use angular2/platform/browser as bootstrap lib
Update the Angular 2 transformer to recognize `package:angular2/platform/browser.dart` as the library which exports the `bootstrap` function. Update playground, examples, benchmarks, & tests to import bootstrap from platform/browser. Closes angular#7647
1 parent c194f66 commit b6507e3

File tree

77 files changed

+130
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+130
-88
lines changed

modules/angular2/docs/cheatsheet/bootstrapping.md

Lines changed: 1 addition & 1 deletion

modules/angular2/examples/compiler/ts/url_resolver/url_resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33
import {UrlResolver} from 'angular2/compiler';
44

55
var MyApp: any;

modules/angular2/examples/core/forms/ts/ng_validators/ng_validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {bootstrap} from 'angular2/bootstrap';
1+
import {bootstrap} from 'angular2/platform/browser';
22
import {NG_VALIDATORS} from 'angular2/common';
33
import {Provider} from 'angular2/core';
44

modules/angular2/examples/core/pipes/ts/async_pipe/async_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33
import {Observable, Subscriber} from 'rxjs/Rx';
44

55
// #docregion AsyncPipe

modules/angular2/examples/core/pipes/ts/date_pipe/date_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33

44
// #docregion DatePipe
55
@Component({

modules/angular2/examples/core/pipes/ts/json_pipe/json_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33

44
// #docregion JsonPipe
55
@Component({

modules/angular2/examples/core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33

44
// #docregion LowerUpperPipe
55
@Component({

modules/angular2/examples/core/pipes/ts/number_pipe/number_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33

44
// #docregion NumberPipe
55
@Component({

modules/angular2/examples/core/pipes/ts/slice_pipe/slice_pipe_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, provide} from 'angular2/core';
2-
import {bootstrap} from 'angular2/bootstrap';
2+
import {bootstrap} from 'angular2/platform/browser';
33

44
// #docregion SlicePipe_string
55
@Component({

modules/angular2/examples/core/ts/prod_mode/prod_mode_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// #docregion enableProdMode
22
import {enableProdMode} from 'angular2/core';
3-
import {bootstrap} from 'angular2/bootstrap';
3+
import {bootstrap} from 'angular2/platform/browser';
44
import {MyComponent} from './my_component';
55

66
enableProdMode();

0 commit comments

Comments
 (0)
X Tutup