AngularJs and Spring Integration

8:37 AM Hendry 0 Comments


The purpose of this tutorial is to perform an integration between AngularJs and Spring MVC and to demonstrate how easy to use AngularJs with Spring is.

Include AngularJS in Spring MVC Project


1. Download AngularJS https://angularjs.org/
2. Include AngularJS javascript files under your resources folder and jsp. See previous post


Try AngularJs!


Copy below codes on your jsp

<script src="<c:url value="/resources/libs/angularjs/1.3.14/angular.min.js" />"></script>
<body>

<div ng-app="">
  <p>Name : <input type="text" ng-model="name"></p>
  <h1>Hello {{name}}</h1>
</div>

</body>

http://www.w3schools.com/angular/tryit.asp?filename=try_ng_default

AngularJS Documentation