Created
December 18, 2013 14:48
-
-
Save SFantasy/8023527 to your computer and use it in GitHub Desktop.
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> | |
<head> | |
<meta name="description" content="first AngularJS application" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div ng-controller='TestController'> | |
<input type="text" ng-model='greeting.text'> | |
<p>{{greeting.text}}</p> | |
</div> | |
</body> | |
</html> |
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
function TestController($scope) { | |
$scope.greeting = { text: 'hello' }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment