Textbox with angularjs
Using ng-model, ng-bind and ng-value with textbox.
HTML
<div ng-app="myApp">
<div ng-controller="myController">
<input type="text" ng-model="text" >
</div>
<button id="b1" ng-click="GET();">
GET
</button>
</div>
JavaScript
var myApp=angular.module('myApp',[]);
myApp.controller("myController",function($scope){
$scope.GET=function($scope){
alert("hhhh");
$scope.text="something";
}
});