Skip to main content

Posts

Showing posts with the label ng-model

AngularJS Hello world Text Input and ng-model

Code: <! DOCTYPE html> < html ng-app> < head >      < title >Hello World, Example</ title >      < script type = "text/javascript"          src = "//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" ></ script > </ head > < body >             Write some text in textbox:      < input type = "text" ng-model = "uservalue" />      < h1 >Hello {{ uservalue }}</ h1 >        </ body > </ html > output: