@von-development-studio/angular-rest-service

Angular Rest Service wrapper.

Usage no npm install needed!

<script type="module">
  import vonDevelopmentStudioAngularRestService from 'https://cdn.skypack.dev/@von-development-studio/angular-rest-service';
</script>

README

Angular Rest Service

This library was generated with Angular CLI version 11.0.3.

Installing

  1. Add NPM package into your project:
npm install @von-development-studio/angular-rest-service --save
  1. 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);
  }
}
  1. 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);
  }
}

By Von Development Studio