Java

Hello angularjs

When I was just getting started with AngularJS, I found jsfiddle.net, a site that allows you to enter some code and run it straight from a browser. So, what do you do first: Hello World of course. This one with a little input twist…

<!DOCTYPE html>
<html ng-app>
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body>
Enter Your Name:
<input type="text" ng-model="name" />
<h1>Hello {{ name }}</h1>
</body>
</html>

Screen Shot 2015-09-08 at 1.58.35 PM