docs(dart): change imports from bootstrap.dart to platform/browser.dart
closes #1013
This commit is contained in:
parent
7f11a6ce05
commit
2144b8e5b6
|
@ -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';
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// #docregion
|
||||
import 'package:angular2/bootstrap.dart';
|
||||
import 'package:angular2/platform/browser.dart';
|
||||
|
||||
import 'package:attribute_directives/app_component.dart';
|
||||
|
||||
main() {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// #docregion
|
||||
import 'package:angular2/bootstrap.dart';
|
||||
import 'package:angular2/platform/browser.dart';
|
||||
|
||||
import 'package:lifecycle_hooks/app_component.dart';
|
||||
|
||||
main() {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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: '<h1>My First Angular 2 App</h1>')
|
||||
class AppComponent {}
|
||||
|
|
|
@ -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: '<h1>My First Angular 2 App</h1>')
|
||||
class AppComponent {}
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angular2/bootstrap.dart';
|
||||
import 'package:angular2/platform/browser.dart';
|
||||
|
||||
import 'package:angular2_tour_of_heroes/app_component.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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue