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',
|
||||
// These are services that would be created if a class in the component's
|
||||
// template tries to inject them.
|
||||
viewBindings: [GreetingService]
|
||||
})
|
||||
// The template for the component.
|
||||
@View({
|
||||
viewBindings: [GreetingService],
|
||||
// Expressions in the template (like {{greeting}}) are evaluated in the
|
||||
// context of the HelloCmp class below.
|
||||
template: `<div class="greeting">{{greeting}} <span red>world</span>!</div>
|
||||
|
|
Loading…
Reference in New Issue