Git cleaning
This commit is contained in:
parent
0ec4881a81
commit
62cbeaecc0
|
@ -1,11 +1,15 @@
|
||||||
import { IError } from "../../interfaces/IError";
|
import { IError } from "../../interfaces/IError";
|
||||||
|
import * as angular from 'angular';
|
||||||
|
|
||||||
|
|
||||||
export class BaseService {
|
export class BaseService {
|
||||||
public static $inject: string[] = ["$http", "$q"];
|
public static $inject: string[] = ["$http", "$q"];
|
||||||
public baseUrl: string;
|
public baseUrl: string;
|
||||||
|
|
||||||
constructor(private $http: ng.IHttpService, private $q: ng.IQService) {
|
constructor(private $http: ng.IHttpService, private $q: ng.IQService) {
|
||||||
this.baseUrl = (<any>window)._spPageContextInfo.webAbsoluteUrl;
|
|
||||||
|
this.baseUrl = (<any>window)._spPageContextInfo.webAbsoluteUrl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getRequest(query?: string, endPoint?: string): ng.IPromise<any> {
|
public getRequest(query?: string, endPoint?: string): ng.IPromise<any> {
|
||||||
|
|
Loading…
Reference in New Issue