Created
September 30, 2016 10:58
-
-
Save HokieGeek/e0ca83a403a6c4a6f78032a86ee499fc to your computer and use it in GitHub Desktop.
Trying out angular
This file contains hidden or 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
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.ivinod.com/angularjs-directive-controller/
http://www.w3schools.com/angular/angular_ref_directives.asp
https://github.com/ivinod/angularjs-directive-controller-example/blob/master/app.js