Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Last active April 4, 2018 15:28
Show Gist options
  • Save kmaraz/a5ea142421029a6b07159c4222128d91 to your computer and use it in GitHub Desktop.
Save kmaraz/a5ea142421029a6b07159c4222128d91 to your computer and use it in GitHub Desktop.
<div id="module-events">
<div *ngIf="!config.isLoaded">
<div class="spinner">Loading...</div>
</div>
<div *ngIf="config.isLoaded && !config.search">
<!-- No events -->
<div *ngIf="eventsCount === 0">
No events for you.
</div>
<!-- No searched events -->
<div *ngIf="eventsCount > 0">
<!-- All events -->
<!-- Actions are imported directly in the child component -->
<events-event-item
*ngFor="let event of events"
[event]="event">
</events-event-item>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment