mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-29 04:57:32 +00:00
Add Angular2Spa template
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user