-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
"angular2-jsonapi": "^8.2.1"
In readme is stated 'It's also possible to handle errors for all requests by overriding handleError(error: any): Observable in the datastore.'.
So i'm interested how can i achieve this behaviour? This is auth datastore and should it be possible to override it in here.
const config: DatastoreConfig = {
baseUrl: ${environment.baseUrl}/auth,
models: {
login: Login,
refresh: Refresh,
},
};
@Injectable({
providedIn: 'root',
})
@JsonApiDatastoreConfig(config)
export class DatastoreService extends JsonApiDatastore {
constructor(public http: HttpClient) {
super(http);
}
}
Thanks :)
Metadata
Metadata
Assignees
Labels
No labels