@View decorator removed to be consistent with other examples available in angular.io site

This commit is contained in:
Tapas Jena 2015-11-09 14:15:00 +08:00 committed by Ward Bell
parent 8cccad42c3
commit 175a5e4d87
1 changed files with 4 additions and 2 deletions

View File

@ -12,8 +12,10 @@
p.text-body Express your ideas with clean, understandable code. Angular is simple to build on, easy to change, and friendly to the way UX designers work. Create a UI that is beautiful by default, with material design and support for web components. Get started in just minutes with our <a href="/docs/ts/latest/quickstart.html">QuickStart Guide</a>.
.c6
code-example(language="javascript" format="linenums" showcase="true").
@Component({selector: 'my-app'})
@View({template: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'})
@Component({
selector: 'my-app',
template: '&lt;h1&gt;Hi {{ name }}&lt;/h1&gt;'
})
// Component controller
class MyAppComponent {