Skip to content

Instantly share code, notes, and snippets.

@sharikovvladislav
Created August 29, 2017 11:36
Show Gist options
  • Save sharikovvladislav/041da37b87c1f74976799c548065fcf2 to your computer and use it in GitHub Desktop.
Save sharikovvladislav/041da37b87c1f74976799c548065fcf2 to your computer and use it in GitHub Desktop.
private getGroups(): Observable<any> {
// ....
return this.http.get(_url, options)
.map(response => {
var responseAsObject = response.json();
console.log(responseAsObject);
return responseAsObject;
})'
}
@itanimo
Copy link

itanimo commented Aug 29, 2017

Sort of, even if I return the variable I can't map it to my array. But you helped clarify part of the problem so I have that to thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment