@View decorator removed to be consistent with other examples available in angular.io site
This commit is contained in:
parent
8cccad42c3
commit
175a5e4d87
|
@ -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: '<h1>Hi {{ name }}</h1>'})
|
||||
@Component({
|
||||
selector: 'my-app',
|
||||
template: '<h1>Hi {{ name }}</h1>'
|
||||
})
|
||||
|
||||
// Component controller
|
||||
class MyAppComponent {
|
||||
|
|
Loading…
Reference in New Issue