From 2144b8e5b6b642d42681fa7d596a2163608c554e Mon Sep 17 00:00:00 2001 From: Kathy Walrath Date: Mon, 28 Mar 2016 13:30:03 -0700 Subject: [PATCH] docs(dart): change imports from bootstrap.dart to platform/browser.dart closes #1013 --- public/docs/_examples/architecture/dart/web/main.dart | 3 ++- public/docs/_examples/attribute-directives/dart/web/main.dart | 3 ++- public/docs/_examples/dependency-injection/dart/web/main.dart | 4 ++-- public/docs/_examples/displaying-data/dart/web/main.dart | 3 ++- public/docs/_examples/forms/dart/web/main.dart | 3 ++- .../hierarchical-dependency-injection/dart/web/main.dart | 3 ++- public/docs/_examples/lifecycle-hooks/dart/web/main.dart | 3 ++- public/docs/_examples/pipes/dart/web/main.dart | 3 ++- public/docs/_examples/quickstart/dart/ex1/web/main.dart | 2 +- public/docs/_examples/quickstart/dart/ex2/web/main.dart | 2 +- public/docs/_examples/server-communication/dart/web/main.dart | 3 ++- .../docs/_examples/structural-directives/dart/web/main.dart | 3 ++- public/docs/_examples/template-syntax/dart/web/main.dart | 3 ++- public/docs/_examples/toh-5/dart/web/main.dart | 2 +- public/docs/_examples/user-input/dart/web/main.dart | 3 ++- public/docs/dart/latest/quickstart.jade | 2 +- 16 files changed, 28 insertions(+), 17 deletions(-) diff --git a/public/docs/_examples/architecture/dart/web/main.dart b/public/docs/_examples/architecture/dart/web/main.dart index c96db07bb8..acb382ab8e 100644 --- a/public/docs/_examples/architecture/dart/web/main.dart +++ b/public/docs/_examples/architecture/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:developer_guide_intro/backend_service.dart'; import 'package:developer_guide_intro/hero_list_component.dart'; import 'package:developer_guide_intro/hero_service.dart'; diff --git a/public/docs/_examples/attribute-directives/dart/web/main.dart b/public/docs/_examples/attribute-directives/dart/web/main.dart index ce74487a47..0703b7ab25 100644 --- a/public/docs/_examples/attribute-directives/dart/web/main.dart +++ b/public/docs/_examples/attribute-directives/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:attribute_directives/app_component.dart'; main() { diff --git a/public/docs/_examples/dependency-injection/dart/web/main.dart b/public/docs/_examples/dependency-injection/dart/web/main.dart index 8e908cc892..abc5a9c88e 100644 --- a/public/docs/_examples/dependency-injection/dart/web/main.dart +++ b/public/docs/_examples/dependency-injection/dart/web/main.dart @@ -1,6 +1,6 @@ //#docregion - import 'package:angular2/platform/browser.dart'; + import 'package:dependency_injection/app_component.dart'; import 'package:dependency_injection/providers_component.dart'; @@ -9,4 +9,4 @@ main() { bootstrap(AppComponent); //#enddocregion bootstrap bootstrap(ProvidersComponent); -} \ No newline at end of file +} diff --git a/public/docs/_examples/displaying-data/dart/web/main.dart b/public/docs/_examples/displaying-data/dart/web/main.dart index 69650f0740..6a3620979c 100644 --- a/public/docs/_examples/displaying-data/dart/web/main.dart +++ b/public/docs/_examples/displaying-data/dart/web/main.dart @@ -1,7 +1,8 @@ // #docplaster // #docregion final -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; // #enddocregion final + //import 'package:displaying_data/app_component_1.dart' as v1; //import 'package:displaying_data/app_component_2.dart' as v2; //import 'package:displaying_data/app_component_3.dart' as v3; diff --git a/public/docs/_examples/forms/dart/web/main.dart b/public/docs/_examples/forms/dart/web/main.dart index 24a30874e3..7d21d9e9ba 100644 --- a/public/docs/_examples/forms/dart/web/main.dart +++ b/public/docs/_examples/forms/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:hero_form/hero_form_component.dart'; main() { diff --git a/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart b/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart index a265c21e69..4b181c2ab5 100644 --- a/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart +++ b/public/docs/_examples/hierarchical-dependency-injection/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:hierarchical_di/heroes_list_component.dart'; import 'package:hierarchical_di/heroes_service.dart'; diff --git a/public/docs/_examples/lifecycle-hooks/dart/web/main.dart b/public/docs/_examples/lifecycle-hooks/dart/web/main.dart index 6fc83949b7..5013275e6a 100644 --- a/public/docs/_examples/lifecycle-hooks/dart/web/main.dart +++ b/public/docs/_examples/lifecycle-hooks/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:lifecycle_hooks/app_component.dart'; main() { diff --git a/public/docs/_examples/pipes/dart/web/main.dart b/public/docs/_examples/pipes/dart/web/main.dart index 72e510805c..98e9c1b34b 100644 --- a/public/docs/_examples/pipes/dart/web/main.dart +++ b/public/docs/_examples/pipes/dart/web/main.dart @@ -1,4 +1,5 @@ -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:pipe_examples/app_component.dart'; import 'package:pipe_examples/hero_birthday1_component.dart'; diff --git a/public/docs/_examples/quickstart/dart/ex1/web/main.dart b/public/docs/_examples/quickstart/dart/ex1/web/main.dart index e264103ff3..3d1f7a3015 100644 --- a/public/docs/_examples/quickstart/dart/ex1/web/main.dart +++ b/public/docs/_examples/quickstart/dart/ex1/web/main.dart @@ -1,6 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; import 'package:angular2/core.dart'; +import 'package:angular2/platform/browser.dart'; @Component(selector: 'my-app', template: '

My First Angular 2 App

') class AppComponent {} diff --git a/public/docs/_examples/quickstart/dart/ex2/web/main.dart b/public/docs/_examples/quickstart/dart/ex2/web/main.dart index e264103ff3..3d1f7a3015 100644 --- a/public/docs/_examples/quickstart/dart/ex2/web/main.dart +++ b/public/docs/_examples/quickstart/dart/ex2/web/main.dart @@ -1,6 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; import 'package:angular2/core.dart'; +import 'package:angular2/platform/browser.dart'; @Component(selector: 'my-app', template: '

My First Angular 2 App

') class AppComponent {} diff --git a/public/docs/_examples/server-communication/dart/web/main.dart b/public/docs/_examples/server-communication/dart/web/main.dart index d0892cf49b..1b7933a87d 100644 --- a/public/docs/_examples/server-communication/dart/web/main.dart +++ b/public/docs/_examples/server-communication/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:server_communication/toh/toh_component.dart'; import 'package:server_communication/wiki/wiki_component.dart'; import 'package:server_communication/wiki/wiki_smart_component.dart'; diff --git a/public/docs/_examples/structural-directives/dart/web/main.dart b/public/docs/_examples/structural-directives/dart/web/main.dart index 2c00f66c65..f26456b187 100644 --- a/public/docs/_examples/structural-directives/dart/web/main.dart +++ b/public/docs/_examples/structural-directives/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:structural_directives/structural_directives_component.dart'; main() { diff --git a/public/docs/_examples/template-syntax/dart/web/main.dart b/public/docs/_examples/template-syntax/dart/web/main.dart index f1659d0821..1a5f965ec1 100644 --- a/public/docs/_examples/template-syntax/dart/web/main.dart +++ b/public/docs/_examples/template-syntax/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:template_syntax/app_component.dart'; void main() { diff --git a/public/docs/_examples/toh-5/dart/web/main.dart b/public/docs/_examples/toh-5/dart/web/main.dart index 5983c199f7..314d6f0b65 100644 --- a/public/docs/_examples/toh-5/dart/web/main.dart +++ b/public/docs/_examples/toh-5/dart/web/main.dart @@ -1,4 +1,4 @@ -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; import 'package:angular2_tour_of_heroes/app_component.dart'; diff --git a/public/docs/_examples/user-input/dart/web/main.dart b/public/docs/_examples/user-input/dart/web/main.dart index f74bf40a09..fc77aef43b 100644 --- a/public/docs/_examples/user-input/dart/web/main.dart +++ b/public/docs/_examples/user-input/dart/web/main.dart @@ -1,5 +1,6 @@ // #docregion -import 'package:angular2/bootstrap.dart'; +import 'package:angular2/platform/browser.dart'; + import 'package:user_input/app_component.dart'; main() { diff --git a/public/docs/dart/latest/quickstart.jade b/public/docs/dart/latest/quickstart.jade index 49821b9af3..3f99d37ed8 100644 --- a/public/docs/dart/latest/quickstart.jade +++ b/public/docs/dart/latest/quickstart.jade @@ -107,7 +107,7 @@ p. The top lines import two libraries. *All* Dart files that use Angular APIs import `core.dart`. - Only files that call `bootstrap()` import `bootstrap.dart`. + Only files that call `bootstrap()` import `platform/browser.dart`. //- ########################## .l-main-section