import { NgModule, ModuleWithProviders } from '@angular/core';
import { APP_BASE_LIB_COMPONENTS } from './angular/components';
import { APP_BASE_LIB_DIRECTIVES } from './angular/directives';
import { APP_BASE_LIB_PIPES } from './angular/pipes/index';
import { APP_BASE_LIB_SERVICES, APP_BASE_SERVICES, APP_BASE_LIB_RESOLVERS } from './angular/services/index';
@NgModule({
imports: [
],
declarations: [
APP_BASE_LIB_COMPONENTS,
APP_BASE_LIB_DIRECTIVES,
APP_BASE_LIB_PIPES
],
exports: [
APP_BASE_LIB_COMPONENTS,
APP_BASE_LIB_DIRECTIVES,
APP_BASE_LIB_PIPES,
],
providers: [
APP_BASE_LIB_RESOLVERS,
APP_BASE_LIB_SERVICES,
APP_BASE_SERVICES
]
})
// export class AppBaseLibraryModule { }
export class AppBaseLibraryModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AppBaseLibraryModule
};
}
}
//
// import { NgModule, ModuleWithProviders } from '@angular/core';
// import { HttpModule } from '@angular/http';
// import { HttpClientModule } from '@angular/common/http';
//
// import { APP_BASE_LIB_DIRECTIVES } from '../directives';
// import { APP_BASE_LIB_PIPES } from '../pipes/index';
// import { APP_BASE_LIB_SERVICES } from '../services/index';
// import { APP_BASE_LIB_RESOLVERS } from '../services/index';
// import { APP_BASE_SERVICES } from '../services';
//
// @NgModule({
// imports: [
// HttpModule,
// HttpClientModule,
// ],
// declarations: [
// APP_BASE_LIB_DIRECTIVES,
// APP_BASE_LIB_PIPES
// ],
// exports: [
// APP_BASE_LIB_DIRECTIVES,
// APP_BASE_LIB_PIPES,
// ],
// providers: [
// APP_BASE_LIB_SERVICES,
// APP_BASE_LIB_RESOLVERS,
// APP_BASE_SERVICES
// ]
// })
// export class AppBaseLibModule {
//
// static forRoot(): ModuleWithProviders {
// return {
// ngModule: AppBaseLibModule
// };
// }
//
// }