Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var urlParts = $location.absUrl().split(".html")[0].split("/");
  2. var currentPage = urlParts[urlParts.length-1];
  3.  
  4. $http.get("rest/customer/locale/" + currentPage).then(function(result){
  5. locale.siteProperties = result.data;
  6. });
  7.  
  8. $http.get("rest/customer/locale/common").then(function(result){
  9. locale.commonProperties = result.data;
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement