Below is the function and HTML which calls the service I mentioned in my question.
Whenever I click sepeific language, the localeContenturl - contains a sample HTML page (contains a var --> localess ) , which loads the data returned from the service
function EquipmentControl($scope, $locale, localeService) {
$scope.changeLanguage = function(culture) {
localeService.getResources(culture).then(function (localeResources) {
$scope.localess = localeResources;
});
};
$scope.localeContentUrl = '/app/partials/Templates/home.html';
};
HTML
<div ng-controller="EquipmentControl">
<p>Change language: <a ng-click="changeLanguage('en')">English </a> | <a ng-click="changeLanguage('zh')">Chinese </a> | <a ng-click="changeLanguage('de')">German </a> </p>
<div ng-include src="localeContentUrl"></div>
</div>