Skip to content

Instantly share code, notes, and snippets.

@henryruhs
Last active April 20, 2022 11:43
Show Gist options
  • Save henryruhs/07dea30c244d8be8f284878ce375f087 to your computer and use it in GitHub Desktop.
Save henryruhs/07dea30c244d8be8f284878ce375f087 to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { CrudService } from 'ngx-crud';
import { RequestBody, ResponseBody } from './example.interface';
import { environment } from '@env';
@Injectable()
export class ExampleService extends CrudService<RequestBody, ResponseBody>
{
protected apiUrl : string = environment.apiUrl;
protected endpoint : string = environment.routes.example;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment