Created
April 4, 2017 14:13
-
-
Save RubyRonin/993e3b3309c7708db4cff81ad61ae142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test() { | |
this.http.get("https://myapi.com/?question=3", {headers: headers}) | |
.map(res => res.json()).subscribe(data => { | |
this.rcvdpayload = data.data.children; console.log(this.rcvdpayload); | |
}, error => { | |
console.log(JSON.stringify(error.json())); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ionViewWillEnter(){ | |
this.compnentvar = this.services.getQuestion(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment