UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

25 lines (22 loc) 448 B
--- order: 10 title: zh-CN: 常见问题 en-US: common problem type: Documents --- ## How to capture intercepted information when there is no Token? ```ts // Use subscription Error this.http.get('/user').subscribe( res => console.log('success', res), err => console.error('error', err) ); // Or use catchError this.http.get('/user').pipe( catchError(err => { console.error('error', err); return of({}); }) ).subscribe(); ```