Skip to content

Commit

Permalink
adding a button
Browse files Browse the repository at this point in the history
  • Loading branch information
noam-honig committed Sep 27, 2017
1 parent e91512f commit dfdf33d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WebDemo/Scripts/App/Orders.ts
Expand Up @@ -7,6 +7,7 @@ import * as models from './models';
<h1>{{ title }} ({{title.length}})</h1>
<input [(ngModel)]="title">
<h2 *ngIf="title.length>15"> the title is long!!!</h2>
<button (click)="click()">my button</button>
`
})
Expand All @@ -15,6 +16,8 @@ import * as models from './models';
export class Orders {

title = 'the title';

click() {
this.title += "button was clicked";
}
}
const apiUrl = '/dataApi/';

0 comments on commit dfdf33d

Please sign in to comment.