mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
14 lines
266 B
TypeScript
14 lines
266 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'counter',
|
|
template: require('./counter.component.html')
|
|
})
|
|
export class CounterComponent {
|
|
public currentCount = 0;
|
|
|
|
public incrementCounter() {
|
|
this.currentCount++;
|
|
}
|
|
}
|