-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add, update and remove method have been implemented
- Loading branch information
Fabio Giaffaglione
committed
Nov 27, 2016
1 parent
b14b678
commit 46ac9a4
Showing
4 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
<ul> | ||
<li *ngFor="let item of items | async"> | ||
<span (click)=selectItem(item) >{{ item.item.name }}</span> | ||
</li> | ||
<li *ngFor="let item of items | async"> | ||
<span (click)=selectItem(item)>{{ item.name }}</span> | ||
</li> | ||
</ul> | ||
<input [(ngModel)]="test" /> | ||
|
||
|
||
<span class="app-action"> | ||
<button md-fab (click)="openDialog()" ><md-icon>playlist_add</md-icon></button> | ||
</span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<md-card class="app-input-section"> | ||
<md-input [(ngModel)]="firstname" placeholder="First name"></md-input> | ||
<md-input [(ngModel)]="newItem.name" placeholder="First name"></md-input> | ||
<md-input placeholder="Last name"></md-input> | ||
</md-card> | ||
|
||
|
||
|
||
<button md-raised-button type="button" color="primary" | ||
(click)="dialogRef.close(firstname)" md-tooltip="This is a tooltip!">Yes</button> | ||
<button md-raised-button type="button" (click)="dialogRef.close()">No</button> | ||
(click)="dialogRef.close(newItem)" md-tooltip="This is a tooltip!">Salva</button> | ||
<button md-raised-button type="button" (click)="dialogRef.close()">Annulla</button> | ||
<button md-raised-button type="button" (click)="dialogRef.close({item: newItem, delete:true})">Rimuovi</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters