AngularJS is a fairly nifty framework that’s pitched as “HTML enhanced for web apps”. It’s designed to fill some of the gaps that HTML leaves when declaring dynamic content in web-applications, like improving managing dynamic views and extending the HTML vocabulary for applications. The overall outcome is a very well structured set of libraries that really speed up development and reduce the amount of code that needs to be written to achieve some finicky UI tasks.
<!DOCTYPE html>
<html>
<head>
<title>John Ryans angularJS with nodejs kickstart</title>
</head>
<body>
<div ng-app="myApp">
<input type="text" ng-model="data.message">
<h1></h1>
</div>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js">
</script>
</body>
</html>
<div ng-controller="TestStaticDataCtrl">
<div class="panel">Search : <input type="text" ng-model="searchText"> </div>
<table class="panel" width=100%>
<thead>
<tr>
<td>Name</td>
<td>Year</td>
</tr>
</thead>
<tr ng-repeat="item in movieData.items">
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
<script>
function TestStaticDataCtrl($scope, MovieData){
var MovieData = {};
MovieData.items = [
{ name: "Monsters Inc 2", year: "2013" },
{ name: "Star Wars", year: "1977" },
{ name: "Toy Story", year: "1977" },
]
$scope.movieData = MovieData;
}
</script>