We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Http
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now, doing this (assuming similar semantics that Image component uses for local src binding):
Image
src
this.http.get(`~/assets/data.json`) .map((response: Response) => response.json()) .subscribe((results: string[]) => { // never gets here });
Does not work. Then only way I know to load a local file would be to use something like following:
let app = knownFolders.currentApp(); let localFile = app.getFile(`assets/data.json`); localFile.readText().then((data) => { try { resolve(JSON.parse(data)); } catch (err) { reject(err); } }, (err) => { reject(err); });
That of course is not very intuitive to Angular devs. Is there another way to do this using just Angular's Http?
The text was updated successfully, but these errors were encountered:
a858b6d
No branches or pull requests
Right now, doing this (assuming similar semantics that
Image
component uses for localsrc
binding):Does not work.
Then only way I know to load a local file would be to use something like following:
That of course is not very intuitive to Angular devs.
Is there another way to do this using just Angular's
Http
?The text was updated successfully, but these errors were encountered: