parent
818faff117
commit
7c23ebc823
|
@ -216,7 +216,7 @@ a(id="app-component")
|
||||||
The metadata tell Angular how to create and use this component.
|
The metadata tell Angular how to create and use this component.
|
||||||
|
|
||||||
We apply this function to the component class
|
We apply this function to the component class
|
||||||
by prefixing the function with the **@** symbol and invoking it with the metadata object.
|
by prefixing the function with the **@** symbol and invoking it with the metadata object
|
||||||
just above the class:
|
just above the class:
|
||||||
+makeExample('quickstart/ts/app/app.component.ts', 'metadata', 'app/app.component.ts (metadata)')(format=".")
|
+makeExample('quickstart/ts/app/app.component.ts', 'metadata', 'app/app.component.ts (metadata)')(format=".")
|
||||||
:marked
|
:marked
|
||||||
|
@ -397,7 +397,7 @@ code-example(format="").
|
||||||
* We see compiler warnings and errors that are hidden from us in the browser.
|
* We see compiler warnings and errors that are hidden from us in the browser.
|
||||||
|
|
||||||
* Pre-compilation simpifies the module loading process and
|
* Pre-compilation simpifies the module loading process and
|
||||||
it's much easier to diagnose problem when this is a separate, external step.
|
it's much easier to diagnose problems when this is a separate, external step.
|
||||||
|
|
||||||
* Pre-compilation means a faster user experience because the browser doesn't waste time compiling.
|
* Pre-compilation means a faster user experience because the browser doesn't waste time compiling.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue