From 91551e8a3542c56c56621151f71aaf4326763af5 Mon Sep 17 00:00:00 2001 From: Naomi Black Date: Wed, 10 Feb 2016 14:58:05 -0800 Subject: [PATCH] docs(beta-4): update quickstart ts to include typings --- public/docs/_examples/quickstart/ts/app/main.ts | 1 + public/docs/ts/latest/quickstart.jade | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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`