Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active August 17, 2017 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/00b239095d350f932966006363889717 to your computer and use it in GitHub Desktop.
Save matthieu-D/00b239095d350f932966006363889717 to your computer and use it in GitHub Desktop.
<ion-header>
<ion-navbar>
<ion-title>
Ionic Redux Intro
</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<div *ngFor="let color of colorList$ | async">
<div style="width: 100px;height: 100px" [style.backgroundColor]="color"></div>
</div>
<button ion-button (click)="addColors()">
Add some colors
</button>
<button ion-button (click)="removeLastColor()">
Remove last color
</button>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment