Skip to content

Should it be working for HttpClient? #4

@rochapablo

Description

@rochapablo

I'm always getting the requests, shouldn't been getting from cache instead my external api?

import { HttpClient } from '@angular/common/http'
protected _get(action: string = '', params: string = ''): Observable<Object> {
    this.host = `${this.env.host}`;
    return this.http.get(`${this.host}${action}${params}`);
}
angular: 5.2.0
ng-http-cache: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions