feat: add server-side pagination, sort and search to groups component (#507)

- Add server-side pagination, sort and search to groups component
- Refactor code to conform to current guidelines

See: #234
This commit is contained in:
punwai
2020-05-07 03:08:41 +05:30
committed by GitHub
parent 3136cd3b30
commit 4e95d57081
7 changed files with 281 additions and 123 deletions
+21 -15
View File
@@ -1,23 +1,29 @@
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CoreModule } from '../core/core.module';
import { MatTableModule } from '@angular/material/table';
import { FlexLayoutModule } from '@angular/flex-layout';
/** Angular Imports */
import { NgModule } from '@angular/core';
import { DatePipe } from '@angular/common';
/** Custom Modules */
import { GroupsRoutingModule } from './groups-routing.module';
import { SharedModule } from 'app/shared/shared.module';
import { PipesModule } from '../pipes/pipes.module';
/** Custom Components */
import { GroupsComponent } from './groups.component';
import { GroupsRoutingModule } from 'app/groups/groups-routing.module';
import { GroupsService } from './groups.service';
/**
* Groups Module
*
* All components related to Groups should be declared here.
*/
@NgModule({
imports: [
CommonModule,
SharedModule,
GroupsRoutingModule,
CoreModule,
MatTableModule,
FlexLayoutModule
PipesModule
],
declarations: [GroupsComponent],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
declarations: [
GroupsComponent
],
providers: [DatePipe]
})
export class GroupsModule { }