Skip to content

Instantly share code, notes, and snippets.

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