Google+ Followers

Connect

Get Updates Via Email

Enter your email address:

Delivered by FeedBurner

Monday, 2 June 2014

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:





No comments :

Post a Comment

Share this to your friends