Created
March 28, 2014 20:29
-
-
Save duycuong87vn/9842306 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 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> |
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
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