Skip to content

Instantly share code, notes, and snippets.

@blaisethomas
Created January 28, 2015 15:45
Show Gist options
  • Save blaisethomas/ecf7b005189b6f6d3843 to your computer and use it in GitHub Desktop.
Save blaisethomas/ecf7b005189b6f6d3843 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html ng-app="toyStore">
<head>
<link rel="stylesheet" type="text/css" href="bootstrap.min.css" />
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body class="container" ng-controller="StoreController as store">
<div class="product row" ng-hide= store.product.soldOut>
<h3>
{{store.product.name}}
<em class="pull-right">${{store.product.price}}</em>
</h3>
<button>Add to Cart</button>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment