mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-26 03:27:30 +00:00
Add AureliaSpa template (#398)
This commit is contained in:
committed by
SteveSandersonMS
parent
867e60d7fd
commit
e60ea04f86
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<h2>Counter</h2>
|
||||
|
||||
<p>This is a simple example of an Aurelia component.</p>
|
||||
|
||||
<p>Current count: <strong>${currentCount}</strong></p>
|
||||
|
||||
<button click.delegate="incrementCounter()">Increment</button>
|
||||
</template>
|
||||
@@ -0,0 +1,7 @@
|
||||
export class Counter {
|
||||
public currentCount = 0;
|
||||
|
||||
public incrementCounter() {
|
||||
this.currentCount++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user