Skip to content

Instantly share code, notes, and snippets.

@yagihash
Created June 8, 2014 15:47
Show Gist options
  • Save yagihash/3f44a7c7e9f12c2b785e to your computer and use it in GitHub Desktop.
Save yagihash/3f44a7c7e9f12c2b785e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta charset="utf-8" />
<title>sample</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
<script>
var myApp = angular.module("myApp", []);
myApp.controller("HelloController", function($scope) {
$scope.name = "Anon";
});
</script>
</head>
<body>
<div ng-controller="HelloController">
<label>Name:<input type="text" ng-model="name"></label>
<hr>
<span>Hello, {{name}}!</span>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment