本文整理汇总了TypeScript中ng2-ui-auth.JwtHttp.get方法的典型用法代码示例。如果您正苦于以下问题:TypeScript JwtHttp.get方法的具体用法?TypeScript JwtHttp.get怎么用?TypeScript JwtHttp.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ng2-ui-auth.JwtHttp
的用法示例。
在下文中一共展示了JwtHttp.get方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: get
get(data) {
this.data = data;
this.http.get('http://example.com/api/thing')
.subscribe(
data => this.result = data,
err => console.log(err),
() => console.log('Request Complete')
);
}
示例2: get
get(url: string, args?: Object): Observable<any> {
let params: URLSearchParams;
if (args) {
params = new URLSearchParams();
for (let key in args) {
params.set(key, args[key]);
}
}
let searchParams = {search: params};
return this.http.get(url, searchParams).map((res: any) => res.json());
}
示例3: get
get(meetId:string) {
var url = this.actionUrl + (meetId ? '/' + meetId : '');
return this._http.get(url)
.map(this.compose(Meet.from, this.extractData))
.catch(this.handleError);
}
示例4: allPublic
allPublic() {
var url = this.actionUrl;
return this._http.get(url + '?public=true')
.map(this.compose(Meet.from, this.extractData))
.catch(this.handleError);
}
示例5: allMine
allMine() {
var url = this.actionUrl;
return this._http.get(url)
.map(this.compose(Meet.from, this.extractData))
.catch(this.handleError);
}
示例6: ngOnInit
ngOnInit() {
this.user = this.auth.getPayload();
this.expiration = this.auth.getExpirationDate();
this.secret = this.http.get('/secret').map(response => response.text());
}