Ubuntu Pastebin

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

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	/**
	 * get data from the server
	 * @param url: string
	 * @returns Observable observable
	 */
	get(url)
	{
		return this.checkAccessToken().then(
			() => {
				let headers = new Headers();
				this.createAuthorizationHeader(headers);
				return this._http.get(url, {
					headers: headers
				});
			}
		);
	}
Download as text