example(core): update hellow world example to use components without @View

This commit is contained in:
vsavkin 2015-10-06 17:04:33 -07:00 committed by Victor Savkin
parent a2e7ae568e
commit d38689677c
1 changed files with 1 additions and 4 deletions

View File

@ -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>