Revision 55964
Added by Argiro Kokogiannaki almost 5 years ago
searchDataproviders.service.ts | ||
---|---|---|
1 | 1 |
import {Injectable} from '@angular/core'; |
2 | 2 |
import {Http} from '@angular/http'; |
3 |
import {HttpClient} from "@angular/common/http"; |
|
3 | 4 |
import{EnvProperties} from '../../utils/properties/env-properties'; |
4 | 5 |
|
5 | 6 |
@Injectable() |
6 | 7 |
export class SearchCommunityDataprovidersService { |
7 |
constructor(private http: Http ) {} |
|
8 |
constructor(private http: HttpClient ) {}
|
|
8 | 9 |
|
9 | 10 |
searchDataproviders (properties:EnvProperties, communityId: string):any { |
10 | 11 |
let url = properties.communityAPI+communityId+"/contentproviders"; |
11 | 12 |
|
12 |
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url) |
|
13 |
.map(res => <any> res.json()) |
|
13 |
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url);
|
|
14 |
//.map(res => <any> res.json())
|
|
14 | 15 |
} |
15 | 16 |
} |
Also available in: Unified diff
[Library|Trunk]
Merge into trunk branch angular7 rev 55729