Skip to content

Commit 0dacfb6

Browse files
committed
Merge pull request #14 from Foxandxss/cleancounter
Clean Counter.ts
2 parents 5d1878b + 708ed8a commit 0dacfb6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import {Component, View, ON_PUSH} from 'angular2/angular2';
1+
import {Component, View} from 'angular2/angular2';
22

33
@Component({
44
selector: 'counter',
5-
changeDetection: ON_PUSH,
65
properties: [
76
'counter',
87
'increment',
@@ -12,7 +11,6 @@ import {Component, View, ON_PUSH} from 'angular2/angular2';
1211
]
1312
})
1413
@View({
15-
directives: [],
1614
template: `
1715
<p>
1816
Clicked: {{ counter }} times
@@ -23,6 +21,4 @@ import {Component, View, ON_PUSH} from 'angular2/angular2';
2321
</p>
2422
`
2523
})
26-
export class Counter {
27-
constructor() {}
28-
}
24+
export class Counter {}

0 commit comments

Comments
 (0)