208208 #[ b Create the component file]
209209 #[ code #[ + adjExPath('app/app.component.ts' )] ] (in this newly created directory) with the following content:
210210
211- + makeExample( 'quickstart/ts/ app/app.component.ts' , '' , 'app/app.component.ts' ) ( format = '. ')
211+ + makeProjExample( ' app/app.component.ts' )
212212
213213.l-verbose-section
214214 :marked
241241 Here we import the Angular 2 core so that our component code can have access to
242242 the `@Component` #{_decorator}.
243243
244- + makeExcerpt('quickstart/ts/ app/app.component.ts' , 'import' , 'app/app.component.ts (import) ' )
244+ + makeExcerpt('app/app.component.ts' , 'import' )
245245
246246 h3#component-decorator @Component #{_decorator}
247247 + ifDocsFor('ts' )
254254 component class.
255255 The metadata tells Angular how to create and use this component.
256256
257- + makeExcerpt('quickstart/ts/ app/app.component.ts' , 'metadata' , 'app/app.component.ts (metadata)' ) ( format = '. ')
257+ + makeExcerpt('app/app.component.ts' , 'metadata' )
258258
259259 block annotation-fields
260260 :marked
279279 :marked
280280 ### Component class
281281 At the bottom of the file is an empty, do-nothing class named `AppComponent`.
282- + makeExcerpt('quickstart/ts/ app/app.component.ts' , 'class' , 'app/app.component.ts (class) ' )
282+ + makeExcerpt('app/app.component.ts' , 'class' )
283283 :marked
284284 When we're ready to build a substantive application,
285285 we can expand this class with properties and application logic.
@@ -297,7 +297,7 @@ block create-main
297297 Now we need something to tell Angular to load the root component.
298298 Create the file #[ code #[ + adjExPath('app/main.ts' )] ] with the following content:
299299
300- + makeExample( 'quickstart/ts/ app/main.ts' , '' , 'app/main.ts' ) ( format = '. ')
300+ + makeProjExample( ' app/main.ts' )
301301
302302.l-verbose-section
303303 :marked
@@ -342,7 +342,7 @@ h2#index Step 4: Add #[code index.html]
342342 In the *#{_indexHtmlDir}* folder
343343 create an `index.html` file and paste the following lines into it:
344344
345- + makeExample( 'quickstart/ts/ index.html' , '' , 'index.html' ) ( format = '. ')
345+ + makeProjExample( ' index.html' )
346346
347347.l-verbose-section
348348 :marked
@@ -360,7 +360,7 @@ h2#index Step 4: Add #[code index.html]
360360 :marked
361361 ### Libraries
362362 We loaded the following scripts
363- + makeExcerpt('quickstart/ts/ index.html' , 'libraries' , 'index.html ' )
363+ + makeExcerpt('index.html' , 'libraries' )
364364 :marked
365365 We begin with es6-shim which monkey patches the global context (window) with essential features of ES2015 (ES6).
366366 Next are the polyfills for Angular2, `zone.js` and `reflect-metadata`.
@@ -407,7 +407,7 @@ h2#index Step 4: Add #[code index.html]
407407
408408 Our QuickStart makes such requests when one of its
409409 application TypeScript files has an import statement like this:
410- + makeExcerpt('quickstart/ts/ app/main.ts' , 'app-component' , 'main.ts (excerpt) ' )
410+ + makeExcerpt('app/main.ts' , 'import ' )
411411 :marked
412412 Notice that the module name (after `from`) does not mention a filename extension.
413413 In the configuration we tell SystemJS to default the extension to `js`, a JavaScript file.
@@ -463,7 +463,7 @@ h2#index Step 4: Add #[code index.html]
463463 Create a `styles.css` file in the *#{_indexHtmlDir}* folder and start styling, perhaps with the minimal
464464 styles shown below. For the full set of master styles used by the documentation samples,
465465 see [styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/styles.css).
466- + makeExcerpt('quickstart/ts/ styles.1.css' , '' , 'styles .css' )
466+ + makeExcerpt('styles.1.css' )
467467
468468.l-main-section
469469h2#build-and-run Step 5: Build and run the app!
0 commit comments