Project

General

Profile

« Previous | Next » 

Revision 55964

[Library|Trunk]

Merge into trunk branch angular7 rev 55729

View differences:

helper.service.ts
1 1
import {Injectable, Inject} from '@angular/core';
2 2
import {Http, Response} from '@angular/http';
3
import {Observable}     from 'rxjs/Observable';
4
import 'rxjs/add/observable/of';
5
import 'rxjs/add/operator/do';
6
import 'rxjs/add/operator/share';
3
import {HttpClient} from "@angular/common/http";
4
import {Observable}     from 'rxjs';
5

  
6

  
7

  
7 8
import{EnvProperties} from '../properties/env-properties';
8 9

  
9 10
@Injectable()
10 11
export class HelperService {
11
    constructor(private http: Http) {}
12
    constructor(private http: HttpClient) {}
12 13

  
13 14
    getHelper (router: string, position: string, before: boolean, div: string, properties:EnvProperties,communityId:string ):any {
14 15
        //console.info("get router helpText for : "+router+" - position="+position+" - before="+before + " - div="+div);
......
23 24
          }
24 25
        }
25 26

  
26
        return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
27
                    .map(res => <any> res.json());
27
        return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url);
28
                    //.map(res => <any> res.json());
28 29

  
29 30
    }
30 31

  

Also available in: Unified diff