SHARE
TWEET
Untitled
a guest
Jan 11th, 2016
45
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- "use strict";
- import {Settings} from "./Settings";
- export class Fetcher {
- private url: String;
- private http;
- constructor(http) {
- this.http = http;
- this.url = Settings.url;
- this.fetchJson();
- debugger;
- }
- fetchJson() {
- this.http.get(this.url)
- .map(res => res.text())
- .subscribe(
- data => data,
- err => console.log(err),
- () => console.log("Completed request.")
- );
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
