OLD | NEW |
---|---|
1 library clickcounter; | |
2 | |
1 import 'package:polymer/polymer.dart'; | 3 import 'package:polymer/polymer.dart'; |
2 | 4 |
3 @CustomTag('click-counter') | 5 @CustomTag('click-counter') |
4 class ClickCounter extends PolymerElement with ObservableMixin { | 6 class ClickCounter extends PolymerElement with ObservableMixin { |
5 @observable int count = 0; | 7 @observable int count = 0; |
6 | 8 |
7 void increment() { | 9 void increment() { |
8 count++; | 10 count++; |
9 } | 11 } |
10 } | 12 } |
11 | 13 |
OLD | NEW |