diff --git a/public/docs/_examples/quickstart/ts/app/main.ts b/public/docs/_examples/quickstart/ts/app/main.ts index effe7c896f..f95542f1a7 100644 --- a/public/docs/_examples/quickstart/ts/app/main.ts +++ b/public/docs/_examples/quickstart/ts/app/main.ts @@ -1,4 +1,5 @@ // #docregion +/// import {bootstrap} from 'angular2/platform/browser' // #docregion app-component import {AppComponent} from './app.component' diff --git a/public/docs/ts/latest/quickstart.jade b/public/docs/ts/latest/quickstart.jade index b59d70bca1..4751f1473f 100644 --- a/public/docs/ts/latest/quickstart.jade +++ b/public/docs/ts/latest/quickstart.jade @@ -203,12 +203,15 @@ code-example(format=""). +makeExample('quickstart/ts/app/main.ts', null, 'app/main.ts')(format=".") :marked We need two things to launch the application: + 1. Angular's browser `bootstrap` function 1. The application root component that we just wrote. We import both. Then we call `bootstrap`, passing in the **root component type**, `AppComponent`. - + + The `` tag tells TypeScript how to find the typings for browser shims used by Angular. + .l-sub-section :marked Learn why we import `bootstrap` from `angular2/platform/browser`