AngularJS Read Property File Using Service Controller

AngularJS Read Property File Using Service Controller

Here I will show you how to read value from property file using service and controller. We will use $http service to make call to the server from service and return response to the controller. Controller will process response object and put data inside the scope which we will use print on web page.

Tools needed:

  • Eclipse Kepler ( You could use any version of eclipse now a days all eclipse comes with maven plug-in)
  • Tomcat Server
  • Maven

We will create small web application and deploy on tomcat server:

  • Create maven web project name: JavaHonkAngularJSProperty
  • Final project structure:

AngularJS Read Property File Using Service Controller

  •  Test.properties file:

  • HTML page:

  • Run this project in tomcat you will see below output:

AngularJS Read Property File Using Service Controller

  •  For more information please use their official site here

download Download Project: JavaHonkAngularJSProperty

Leave a Reply

Your email address will not be published. Required fields are marked *