Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export class CustomDataService {
static $inject = ["$http"];
constructor(private _$http: ng.IHttpService) { }
public async getData(): Promise<string[]> {
let result = await this._$http.get("/umbraco/api/CustomData/GetData") as ng.IHttpPromiseCallbackArg<string[]>;
return result.data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.