Last active
August 29, 2015 14:06
-
-
Save Zizzamia/bdb28e91db9279b15951 to your computer and use it in GitHub Desktop.
Tasty lab three
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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