Skip to content

Instantly share code, notes, and snippets.

@avila-womp
Last active March 19, 2018 19:49
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 avila-womp/f414707df188136bf84eba8508492b12 to your computer and use it in GitHub Desktop.
Save avila-womp/f414707df188136bf84eba8508492b12 to your computer and use it in GitHub Desktop.
<div class="indicator-container">
<span
[class]="'indicator '+(slideIndicator.currSlide == 0 ? 'curr-indicator' : '')"
class="indicator curr-indicator"
on="tap:slideIndicator.goToSlide(index=0)">
</span>
<span
[class]="'indicator '+(slideIndicator.currSlide == 1 ? 'curr-indicator' : ' ')"
on="tap:slideIndicator.goToSlide(index=1)">
</span>
<span
[class]="'indicator '+(slideIndicator.currSlide == 2 ? 'curr-indicator' : '')"
on="tap:slideIndicator.goToSlide(index=2)">
</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment