Skip to content

Instantly share code, notes, and snippets.

@duycuong87vn
Created March 28, 2014 20:29
Show Gist options
  • Save duycuong87vn/9842306 to your computer and use it in GitHub Desktop.
Save duycuong87vn/9842306 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html data-ng-app="docsBindExample">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<meta charset="utf-8">
<title>AngularJS Example</title>
</head>
<body>
<div data-ng-controller="Ctrl1">
<br />
Hello
<input type="text" data-ng-model="name"/>
<br />
<span data-ng-bind="name"></span>
<br />
<span x-ng-bind="name"></span>
<br />
<span ng:bind="name"></span>
<br />
<span ng_bind="name"></span>
<br />
<span ng-bind="name"></span>
<br />
</div>
</body>
</html>
var bindApp = angular.module('docsBindExample', []);
bindApp.controller('Ctrl1', function($scope){
$scope.name="you know , what i need";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment