Merge pull request #72 from HenriqueLimas/master

fix(Templates) rename Template to View
This commit is contained in:
Kathy Walrath 2015-05-07 17:30:53 -07:00
commit bd947b2cf6
2 changed files with 6 additions and 6 deletions

View File

@ -108,7 +108,7 @@ p.
has the tag <b>&lt;my-app></b>.
The Dart code for an Angular component consists of a class
(the <b>component controller</b>)
that has <code>@Component</code> and <code>@Template</code> annotations.
that has <code>@Component</code> and <code>@View</code> annotations.
.l-sub-section
@ -119,10 +119,10 @@ p.
the HTML tag for the component by specifying the component's CSS selector.
p.
The <code>@Template</code> annotation defines the HTML that
The <code>@View</code> annotation defines the HTML that
represents the component. This component uses an inline template,
but you can also have an external template. To use an external template,
specify a <code>url</code> property
specify a <code>templateUrl</code> property
and give it the path to the HTML file.
pre.prettyprint
@ -130,8 +130,8 @@ p.
@Component(
selector: 'my-app'
)
@Template(
inline: '&lt;h1&gt;Hello {{ name }}&lt;/h1&gt;'
@View(
template: '&lt;h1&gt;Hello {{ name }}&lt;/h1&gt;'
)
// [PENDING: add line numbers once we can specify where they start]

View File

@ -14,7 +14,7 @@
pre.prettyprint.linenums.is-showcase
code.
@Component({selector: 'my-app'})
@Template({inline: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'})
@View({template: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'})
// Component controller
class MyAppComponent {