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

33 lines (29 loc) 860 B
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; <% if (mFeatures.hasDate) {%> import { NgbModule, NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap'; import { MraNgbDateFormatterService } from '@hicoder/angular-core'; import { LOCALE_ID } from '@angular/core';<%_ }%> @NgModule({ imports: [ CommonModule, FormsModule, RouterModule, <%_ if (mFeatures.hasDate) {%> NgbModule,<%}%> ], declarations: [ ], exports: [ ], providers: [ <%_ if (mFeatures.hasDate) {%> { provide: LOCALE_ID, useValue: '<%-LOCALE%>'}, { provide: NgbDateParserFormatter, useClass: MraNgbDateFormatterService },<%}%> ], entryComponents: [ ], }) export class <%-ModuleName%>ExtModule { }