Skip to content

Instantly share code, notes, and snippets.

@cladera

cladera/product.html

Last active Aug 29, 2015
Embed
What would you like to do?
Google Analytics Experiments in AngularJS - product.html
<div>
<h1>{{product.name}}</h1>
<p>{{product.price}}</p>
<img ng-src="{{product.picture}}">
<p>{{product.description}}</p>
<div>
<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>
</div>
</div>
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.