mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
14 lines
260 B
TypeScript
14 lines
260 B
TypeScript
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'counter',
|
|
templateUrl: './counter.component.html'
|
|
})
|
|
export class CounterComponent {
|
|
public currentCount = 0;
|
|
|
|
public incrementCounter() {
|
|
this.currentCount++;
|
|
}
|
|
}
|