Skip to content

Instantly share code, notes, and snippets.

@Zizzamia
Last active August 29, 2015 14:06
Show Gist options
  • Save Zizzamia/bdb28e91db9279b15951 to your computer and use it in GitHub Desktop.
Save Zizzamia/bdb28e91db9279b15951 to your computer and use it in GitHub Desktop.
Tasty lab three
<!DOCTYPE html>
<html ng-app="tasteAngulajs">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<div>
<input type="text" class="form-control" placeholder="search" />
<button>Add new coffee shop!</button>
<table class="table table-condensed">
<tr>
<th>Name</th>
<th>SF Location</th>
</tr>
<tr></tr>
</table>
</div>
<script>
angular.module('tasteAngulajs', [])
.controller('tasteController', function($scope) {
$scope.coffeeShops = [{ 'name': 'Ritual Coffee', 'sfLocation': 'Hayes Valley' },
{ 'name': 'Blue Bottle', 'sfLocation': 'Hayes Valley' },
{ 'name': 'Coffee Bar', 'sfLocation': 'FiDi' }];
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment