From 8cb1046ce9666e4814166606d749d00e5e65536b Mon Sep 17 00:00:00 2001 From: Kathy Walrath Date: Tue, 30 Aug 2016 08:32:51 -0700 Subject: [PATCH] docs(cheatsheet): copy edit bootstrapping.md (#11149) Also remove Dart-specific code, since the Dart cheatsheet is produced from dart-lang/angular2. --- modules/@angular/docs/cheatsheet/bootstrapping.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/@angular/docs/cheatsheet/bootstrapping.md b/modules/@angular/docs/cheatsheet/bootstrapping.md index 4519eb1dc6..37fc40ff22 100644 --- a/modules/@angular/docs/cheatsheet/bootstrapping.md +++ b/modules/@angular/docs/cheatsheet/bootstrapping.md @@ -4,11 +4,10 @@ Bootstrapping @description {@target ts}`import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';`{@endtarget} {@target js}Available from the `ng.platformBrowserDynamic` namespace{@endtarget} -{@target dart}`import 'package:angular2/platform/browser.dart';`{@endtarget} @cheatsheetItem -syntax(ts dart): -`platformBrowserDynamic().bootstrapModule(MyAppModule);`|`platformBrowserDynamic().bootstrapModule` +syntax(ts): +`platformBrowserDynamic().bootstrapModule(AppModule);`|`platformBrowserDynamic().bootstrapModule` syntax(js): `document.addEventListener('DOMContentLoaded', function() { ng.platformBrowserDynamic @@ -16,4 +15,4 @@ syntax(js): .bootstrapModule(app.AppModule); });`|`platformBrowserDynamic().bootstrapModule` description: -Bootstraps an application defined as AppModule ng module using the Just in Time compiler.{@target js}Must be wrapped in the event listener to fire when the page loads.{@endtarget} +Bootstraps the app, using the root component from the specified `NgModule`. {@target js}Must be wrapped in the event listener to fire when the page loads.{@endtarget}