Skip to content

Instantly share code, notes, and snippets.

@SFantasy
Created December 18, 2013 14:48
Show Gist options
  • Save SFantasy/8023527 to your computer and use it in GitHub Desktop.
Save SFantasy/8023527 to your computer and use it in GitHub Desktop.
<!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>
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