README
Angular Rest Service
This library was generated with Angular CLI version 11.0.3.
Installing
- Add NPM package into your project:
npm install @von-development-studio/angular-rest-service --save
- Create your rest service file RestService
...
import { VonRestService } from '@von-development-studio/angular-rest-service';
...
@Injectable({
providedIn: 'root'
})
export class RestService extends VonRestService {
constructor(
protected http: HttpClient,
protected sanitizer: DomSanitizer
) {
super(http, sanitizer);
}
}
- Create your rest interceptor service file RestInterceptorService
...
import { VonRestInterceptorService } from '@von-development-studio/angular-rest-service';
...
@Injectable({
providedIn: 'root'
})
export class RestInterceptorService extends VonRestInterceptorService {
constructor(
protected router: Router
) {
super(router);
}
}