@hicoder/angular-cli
Version:
Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res
17 lines (15 loc) • 634 B
text/typescript
import { Injectable, Inject, OnDestroy, SkipSelf } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { <%-SchemaName%>BaseService } from './<%-schemaName%>.base.service';
import { <%-ModuleName%>_SERVER_ROOT_URI } from '../<%-moduleName%>.tokens';
({
providedIn: 'root',
})
export class <%-SchemaName%>Service extends <%-SchemaName%>BaseService implements OnDestroy {
constructor(
http: HttpClient,
(<%-ModuleName%>_SERVER_ROOT_URI) private <%-moduleName%>ServerRootUri: string) {
super(http, <%-moduleName%>ServerRootUri);
}
ngOnDestroy() {}
}