next-ucap-messenger/projects/ucap-webmessenger-ui-profile/src/lib/ucap-ui-profile.module.ts

37 lines
1010 B
TypeScript
Raw Normal View History

2019-09-18 06:02:21 +00:00
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
2019-10-02 05:34:17 +00:00
import { FlexLayoutModule } from '@angular/flex-layout';
2019-09-18 06:02:21 +00:00
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { ListItemComponent } from './components/list-item.component';
2019-10-02 08:12:51 +00:00
import { UserListItemComponent } from './components/user-list-item.component';
import { MatRippleModule, MatCheckboxModule } from '@angular/material';
2019-09-18 06:02:21 +00:00
2019-10-02 08:12:51 +00:00
const COMPONENTS = [ListItemComponent, UserListItemComponent];
2019-09-18 06:02:21 +00:00
const SERVICES = [];
@NgModule({
2019-10-02 08:12:51 +00:00
imports: [
CommonModule,
FlexLayoutModule,
MatButtonModule,
MatIconModule,
MatRippleModule,
MatCheckboxModule
],
2019-09-18 06:02:21 +00:00
exports: [...COMPONENTS],
declarations: [...COMPONENTS]
})
2019-10-07 07:29:38 +00:00
export class UCapUiProfileModule {
public static forRoot(): ModuleWithProviders<UCapUiProfileModule> {
2019-09-18 06:02:21 +00:00
return {
2019-10-07 07:29:38 +00:00
ngModule: UCapUiProfileModule,
2019-09-18 06:02:21 +00:00
providers: [...SERVICES]
};
}
}