| 21 | |
| 22 | var count = 0; |
| 23 | export function buttonTap(args: observable.EventData) { |
| 24 | count++; |
| 25 | |
| 26 | obj.set('id', obj.get('id') + 1); |
| 27 | |
| 28 | subObj.set('subId', subObj.get('subId') + 1); |
| 29 | |
| 30 | var parent = (<view.View>args.object).parent; |
| 31 | if (parent) { |
| 32 | var lbl = parent.getViewById<label.Label>('Label1'); |
| 33 | if (lbl) { |
| 34 | lbl.text = 'You clicked ' + count + ' times!'; |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | http.getString('http://it-ebooks-api.info/v1/book/1615005640').then((r) => { |
| 39 | console.log('R: ' + r); |
| 40 | }); |
| 41 | |
| 42 | http.getString('http://www.telerik.com').then((r) => { |
| 43 | console.log('R: ' + r); |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | export function MyPageLoaded(args: observable.EventData) { |
| 48 | console.log('Page is loaded!'); |