Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Created September 30, 2016 10:58
Show Gist options
  • Save HokieGeek/e0ca83a403a6c4a6f78032a86ee499fc to your computer and use it in GitHub Desktop.
Save HokieGeek/e0ca83a403a6c4a6f78032a86ee499fc to your computer and use it in GitHub Desktop.
Trying out angular
<html ng-app="tester">
<head>
<title>Angular testing</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script>
angular.module('tester', [])
.directive()
// .controller('tctrl', function($scope) {
// $scope.name = "TESTING";
// // console.log("TEST", $scope)
// });
</script>
</head>
<body>
<h1>{{'Hello World!'}}</h1>
<h3>3+5 = {{3+5}}</h3>
<input ng-model="data.blah">
<input data-ng-model="data.blah">
<person>{{data.blah}}</person>
<div ng-controller="tctrl">
<input ng-model="name">
<h2>{{name}}</h2>
</div>
<blah></blah>
</body>
</html>