Skip to content

Instantly share code, notes, and snippets.

@navarroaxel
Created July 7, 2014 19:29
Show Gist options
  • Save navarroaxel/a52394da58c23e810c55 to your computer and use it in GitHub Desktop.
Save navarroaxel/a52394da58c23e810c55 to your computer and use it in GitHub Desktop.
Products page
<html>
<head>
<title>Directives</title>
<script src="bootstrap.css"></script>
<script src="bootstrap-theme.css"></script>
</head>
<body ng-controller="defaultCtrl">
<div class="panel panel-default">
<div class="panel-heading">
<h3>Products</h3>
</div>
<div class="panel-body">
<button class="btn btn-primary" ng-click="incrementPrices()">Change Prices</button>
</div>
<div class="panel-body">
<div unordered-list="products" list-property="price | currency"></div>
</div>
</div>
<script src="angular.js"></script>
<script src="defaultCtrl.js"></script>
<script src="directive.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment