8000 chore(rename) rename View and Templates concepts · rusongyu/angular.io@638eb68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 638eb68

Browse files
committed
chore(rename) rename View and Templates concepts
1 parent 2bb004c commit 638eb68

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

public/docs/dart/latest/quickstart.jade

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ p.
108108
has the tag <b>&lt;my-app></b>.
109109
The Dart code for an Angular component consists of a class
110110
(the <b>component controller</b>)
111-
that has <code>@Component</code> and <code>@Template</code> annotations.
111+
that has <code>@Component</code> and <code>@View</code> annotations.
112112

113113

114114
.l-sub-section
@@ -119,19 +119,19 @@ p.
119119
the HTML tag for the component by specifying the component's CSS selector.
120120

121121
p.
122-
The <code>@Template</code> annotation defines the HTML that
122+
The <code>@View</code> annotation defines the HTML that
123123
represents the component. This component uses an inline template,
124124
but you can also have an external template. To use an external template,
125-
specify a <code>url</code> property
125+
specify a <code>templateUrl</code> property
126126
and give it the path to the HTML file.
127127

128128
pre.prettyprint
129129
code.
130130
@Component(
131131
selector: 'my-app'
132132
)
133-
@Template(
134-
inline: '&lt;h1&gt;Hello {{ name }}&lt;/h1&gt;'
133+
@View(
134+
template: '&lt;h1&gt;Hello {{ name }}&lt;/h1&gt;'
135135
)
136136

137137
// [PENDING: add line numbers once we can specify where they start]

public/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
pre.prettyprint.linenums.is-showcase
1515
code.
1616
@Component({selector: 'my-app'})
17-
@Template({inline: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'})
17+
@View({template: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'})
1818

1919
// Component controller
2020
class MyAppComponent {

0 commit comments

Comments
 (0)
0