Last change
on this file since b36a754 was 822c59d, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
260 bytes
|
Rev | Line | |
---|
[822c59d] | 1 | import { Component } from '@angular/core';
|
---|
| 2 |
|
---|
| 3 | @Component({
|
---|
| 4 | selector: 'app-counter-component',
|
---|
| 5 | templateUrl: './counter.component.html'
|
---|
| 6 | })
|
---|
| 7 | export class CounterComponent {
|
---|
| 8 | public currentCount = 0;
|
---|
| 9 |
|
---|
| 10 | public incrementCounter() {
|
---|
| 11 | this.currentCount++;
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.