Skip to content

Instantly share code, notes, and snippets.



Last active Aug 29, 2015
What would you like to do?
Google Analytics Experiments in AngularJS - product.html
<img ng-src="{{product.picture}}">
<button ng-if="variant === 'v0'" class="red-button" ng-click="addToCart()">Add to cart</button>
<button ng-if="variant === 'v1'" class="green-button" ng-click="addToCart()">Add to cart</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.