Skip to content

Instantly share code, notes, and snippets.

@terrancebryant
Created May 6, 2014 21:04
Show Gist options
  • Save terrancebryant/9930d0512941e6c8edb1 to your computer and use it in GitHub Desktop.
Save terrancebryant/9930d0512941e6c8edb1 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Controllers]" />
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://getbootstrap.com/dist/js/bootstrap.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div ng-app="">
<div ng-controller="FirstCtrl">
<h1>{{data.message + " World"}}</h1>
<div class="{{data.message}}">
Wrap me in a bootstrap componet
</div>
</div>
</div>
</body>
</html>
function FirstCtrl($scope) {
$scope.data = {message: "Hello"};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment