Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
using Scope in Angular JS and html5
Manesh Golekar
Jan 12 2015 5:36 AM
649
Reply
Can someone plz help with below sample for using scope in AngularJS . JS file is in same directory .
<!doctype html>
<html ng-app>
<head>
<script type="text/javascript" src="angular.js"></script>
</head>
<body>
<input type="text" ng-model="myname" />
<hr/>
Hello {{myname}} !
<hr/>
<div ng-controller="GreetCtrl">
Hello {{name}} !
</div>
<script type="text/javascript">
function GreetCtrl($scope){
$scope.name = 'Manesh';
}
</script>
</body>
</html>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
CSS3 property in older versions of Internet Explorer (7,8)
How to Use native sharing button?