Files
JavaScriptServices/templates/Angular2Spa/ClientApp/components/counter/counter.ts
2016-03-01 01:10:43 +00:00

16 lines
253 B
TypeScript

import * as ng from 'angular2/core';
@ng.Component({
selector: 'counter'
})
@ng.View({
template: require('./counter.html')
})
export class Counter {
public currentCount = 0;
public incrementCounter() {
this.currentCount++;
}
}