Skip to content

Instantly share code, notes, and snippets.

@Zizzamia
Last active August 29, 2015 14:06
Show Gist options
  • Save Zizzamia/08ac73cd072df87ebe2b to your computer and use it in GitHub Desktop.
Save Zizzamia/08ac73cd072df87ebe2b to your computer and use it in GitHub Desktop.
Tasty lab five
<!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>
<header></header>
<footer></footer>
<script>
angular.module('tasteAngulajs', [])
.config(function() {
})
.controller('tasteController', function($scope) {
$scope.favoriteCoffee = 'Espresso';
})
.controller('awesomeController', function($scope) {
$scope.everything = 'is Awesome!';
});
</script>
</body>
</html>
<div>
Favorite Coffee : {{ favoriteCoffee }}
</div>
<div>
Everything : {{ everything }}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment