UNPKG

otp-component-wu

Version:

How to build libraries with Angular (2, 4, 5...)

27 lines (25 loc) 795 B
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { OtpComponent } from './otp/otp.component'; import {OtpServicesService} from './services/otp-services.service'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { EventsJqueryFunction } from './otp/events-jquery'; import { HttpClientModule } from '@angular/common/http'; @NgModule({ imports: [ CommonModule, ReactiveFormsModule, FormsModule, HttpClientModule ], declarations: [OtpComponent], exports: [OtpComponent], providers: [OtpServicesService,EventsJqueryFunction] }) export class OtpModuleModule { static forRoot() { return { ngModule: OtpModuleModule, providers: [OtpServicesService] } } }