Skip to content

Instantly share code, notes, and snippets.

@jcaxmacher
Forked from kentcdodds/kcd-recompile-usage.html
Last active August 29, 2015 14:08
Show Gist options
  • Save jcaxmacher/1ef2124a4d114754913b to your computer and use it in GitHub Desktop.
Save jcaxmacher/1ef2124a4d114754913b to your computer and use it in GitHub Desktop.
<div kcd-recompile="recompileAllTheThings" use-boolean>
<div ng-repeat="thing in ::things" kcd-recompile="thing.recompileCount">
<img ng-src="{{::thing.getImage()}}">
<span>{{::thing.name}}</span>
<button ng-click="thing.recompileCount=thing.recompileCount+1">Recompile This Thing</button>
</div>
</div>
<button ng-click="recompileAllTheThings=true">Recompile All Things!</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment