UNPKG

@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

12 lines (9 loc) 373 B
import { HttpClient } from '@angular/common/http'; import { MddsBaseService } from '@hicoder/angular-core'; const servicePath = '/<%-schemaName%>/'; export class <%-SchemaName%>BaseService extends MddsBaseService { constructor(http: HttpClient, serverRootUrl: string) { const serviceUrl = serverRootUrl + servicePath; super(http, serviceUrl); } }