|
1 |
| -include _util-fns |
2 |
| - |
3 |
| -block var-def |
4 |
| - - var fragPath='../../ts/latest/_fragments/'; |
5 |
| - |
6 |
| -!=partial(fragPath + 'glossary-intro') |
7 |
| -!=partial(fragPath + 'glossary-a1') |
8 |
| -!=partial(fragPath + 'glossary-a-2') |
9 |
| -!=partial(fragPath + 'glossary-b-c') |
10 |
| -!=partial(fragPath + 'glossary-d1') |
11 |
| -!=partial(fragPath + 'glossary-d2') |
12 |
| -!=partial(fragPath + 'glossary-e1') |
13 |
| -!=partial(fragPath + 'glossary-e2') |
14 |
| -!=partial(fragPath + 'glossary-f-l') |
15 |
| -!=partial(fragPath + 'glossary-m1') |
16 |
| -//partial(fragPath + 'glossary-m2') not needed in dart |
17 |
| -!=partial(fragPath + 'glossary-n-s-1') |
18 |
| - |
19 |
| -:marked |
20 |
| - ## snake_case |
21 |
| - |
22 |
| -.l-sub-section |
| 1 | +extends ../../ts/_cache/glossary.jade |
| 2 | + |
| 3 | +block includes |
| 4 | + include _util-fns |
| 5 | + |
| 6 | +block annotation-defn |
| 7 | + :marked |
| 8 | + There are different kinds of annotation in Dart. Unqualified use of the |
| 9 | + term usually refers to a [_metadata_ annotation][metadata]. A metadata |
| 10 | + annotation begins with the character `@`, followed by either a reference |
| 11 | + to a compile-time constant (such as [`Component`](#component)) or a call |
| 12 | + to a constant constructor. See the [Dart Language Guide][metadata] for |
| 13 | + details. |
| 14 | + |
| 15 | + [metadata]: https://www.dartlang.org/guides/language/language-tour#metadata |
| 16 | + |
| 17 | +block bootstrap-defn-top |
| 18 | + :marked |
| 19 | + We launch an Angular application by "bootstrapping" it with the |
| 20 | + [bootstrap][bootstrap] method. The `bootstrap` method identifies an |
| 21 | + application's top level "root" [Component](#component) and optionally |
| 22 | + registers service [providers](#provider) with the [dependency injection |
| 23 | + system](#dependency-injection). |
| 24 | + |
| 25 | + [bootstrap]: !{docsLatest}/api/angular2.platform.browser/bootstrap.html |
| 26 | + |
| 27 | +block decorator-defn |
| 28 | + :marked |
| 29 | + When used in this guide, these JavaScript terms are taken as synonymous with |
| 30 | + [annotation](#annotation). |
| 31 | + |
| 32 | +block module-defn |
| 33 | + //- Taken from the Dart Difference in guide/architecture.jade |
| 34 | + :marked |
| 35 | + In this guide, the term _module_ refers to a Dart compilation unit, such |
| 36 | + as a library, or a package. (If a Dart file has no `library` or `part` |
| 37 | + directive, then that file itself is a library and thus a compilation |
| 38 | + unit.) For more information about compilation units, see |
| 39 | + the chapter on "Libraries and Scripts" in the |
| 40 | + [Dart Language Specification](https://www.dartlang.org/docs/spec/). |
| 41 | + |
| 42 | +block routing-component-defn |
| 43 | + :marked |
| 44 | + A [Component](#component) with an attached router. |
| 45 | + |
| 46 | + In most cases, the component became attached to a [router](#router) by means |
| 47 | + of a `@RouterConfig` #{decorator} that defined routes to views controlled by this component. |
| 48 | + |
| 49 | + The component's template has a `RouterOutlet` element where it can display views produced by the router. |
| 50 | + |
| 51 | + It likely has anchor tags or buttons with `RouterLink` directives that users can click to navigate. |
| 52 | + |
| 53 | +block append snake-case-defn |
23 | 54 | :marked
|
24 |
| - The practice of writing compound words or phrases such that each word is separated by an |
25 |
| - underscore (`_`). |
26 |
| - |
27 |
| - Library and file names are often spelled in snake_case. Examples include: |
28 |
| - `angular2_tour_of_heroes` and `app_component.dart`. |
29 |
| - |
30 |
| - This form is also known as **underscore case**. |
31 |
| - |
32 |
| -!=partial(fragPath + 'glossary-n-s-2') |
33 |
| -!=partial(fragPath + 'glossary-t1') |
34 |
| -//partial(fragPath + 'glossary-t2') notneeded in dart |
35 |
| -!=partial(fragPath + 'glossary-u-z') |
| 55 | + Library and file names are often spelled in snake_case. Examples include: |
| 56 | + `angular2_tour_of_heroes` and `app_component.dart`. |
0 commit comments