Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple 2-way binding with AngularJS
<script src=""></script>
<body ng-app>
<div ng-controller="MyApp">
<input type="text" ng-model="name"/><br/>
<h1 ng-cloak>Hi {{name}}!</h1>
function MyApp($scope) {
$ = "Anant"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.