Skip to content

Commit d386896

Browse files
committed
example(core): update hellow world example to use components without @view
1 parent a2e7ae5 commit d386896

File tree

1 file changed

+1
-4
lines changed
  • modules/examples/src/hello_world

1 file changed

+1
-4
lines changed

modules/examples/src/hello_world/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ class RedDec {
4242
selector: 'hello-app',
4343
// These are services that would be created if a class in the component's
4444
// template tries to inject them.
45-
viewBindings: [GreetingService]
46-
})
47-
// The template for the component.
48-
@View({
45+
viewBindings: [GreetingService],
4946
// Expressions in the template (like {{greeting}}) are evaluated in the
5047
// context of the HelloCmp class below.
5148
template: `<div class="greeting">{{greeting}} <span red>world</span>!</div>

0 commit comments

Comments
 (0)