Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. userlocation;
  2. userservice ;
  3. usercategory ;
  4.  
  5. constructor(public http: HttpClient, public storage : Storage) { }
  6.  
  7. getListings(){
  8.  
  9. this.storage.get('area').then((userlocation) => {
  10. this.userlocation = userlocation;
  11.  
  12. console.log(this.userlocation)
  13. });
  14.  
  15. this.storage.get('ser').then((userlocation) => {
  16. this.userlocation = userlocation;
  17.  
  18. console.log(this.userlocation)
  19. });
  20.  
  21. return this.http.get(this.api_url+"?location="+ this.userlocation+
  22. "&ser= " + this.userservice)
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement