Ubuntu Pastebin

Paste from d at Thu, 27 Oct 2016 11:43:50 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
	/**
	 * get data from the server
	 * @param url: string
	 * @returns Observable observable
	 */
	get(url)
	{
		var subject = new Subject();

		this.checkAccessToken().then(
			() => {
				let headers = new Headers();
				this.createAuthorizationHeader(headers);

				this._http.get(url, {
					headers: headers
				}).subscribe(subject);
			}
		);

		return subject;
	}
Download as text