Permalink
Browse files

Step 16.6: Make use of properties in the template

  • Loading branch information...
1 parent 4a4b8d5 commit e094539a799782c62c6eee586e6bf16300663b47 @dotansimha dotansimha committed with DAB0mB Sep 27, 2016
Showing with 10 additions and 8 deletions.
  1. +10 −8 client/imports/app/parties/party-details.component.html
@@ -12,15 +12,17 @@
<a [routerLink]="['/']">Cancel</a>
</form>
-<p>Users to invite:</p>
-<ul>
- <li *ngFor="let user of users | async">
- <div>{{user | displayName}}</div>
- <button (click)="invite(user)">Invite</button>
- </li>
-</ul>
+<div *ngIf="isOwner || isPublic">
+ <p>Users to invite:</p>
+ <ul>
+ <li *ngFor="let user of users | async">
+ <div>{{user | displayName}}</div>
+ <button (click)="invite(user)">Invite</button>
+ </li>
+ </ul>
+</div>
-<div>
+<div *ngIf="isInvited">
<h2>Reply to the invitation</h2>
<input type="button" value="I'm going!" (click)="reply('yes')">
<input type="button" value="Maybe" (click)="reply('maybe')">

0 comments on commit e094539

Please sign in to comment.