Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- userlocation;
- userservice ;
- usercategory ;
- constructor(public http: HttpClient, public storage : Storage) { }
- getListings(){
- this.storage.get('area').then((userlocation) => {
- this.userlocation = userlocation;
- console.log(this.userlocation)
- });
- this.storage.get('ser').then((userlocation) => {
- this.userlocation = userlocation;
- console.log(this.userlocation)
- });
- return this.http.get(this.api_url+"?location="+ this.userlocation+
- "&ser= " + this.userservice)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement