example(core): update hellow world example to use components without @View
This commit is contained in:
parent
a2e7ae568e
commit
d38689677c
|
@ -42,10 +42,7 @@ class RedDec {
|
||||||
selector: 'hello-app',
|
selector: 'hello-app',
|
||||||
// These are services that would be created if a class in the component's
|
// These are services that would be created if a class in the component's
|
||||||
// template tries to inject them.
|
// template tries to inject them.
|
||||||
viewBindings: [GreetingService]
|
viewBindings: [GreetingService],
|
||||||
})
|
|
||||||
// The template for the component.
|
|
||||||
@View({
|
|
||||||
// Expressions in the template (like {{greeting}}) are evaluated in the
|
// Expressions in the template (like {{greeting}}) are evaluated in the
|
||||||
// context of the HelloCmp class below.
|
// context of the HelloCmp class below.
|
||||||
template: `<div class="greeting">{{greeting}} <span red>world</span>!</div>
|
template: `<div class="greeting">{{greeting}} <span red>world</span>!</div>
|
||||||
|
|
Loading…
Reference in New Issue