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
+8 -1
View File
@@ -1,3 +1,4 @@
/** Angular Imports */
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
@@ -7,11 +8,12 @@ import { Route } from '../core/route/route.service';
/** Translation Imports */
import { extract } from '../core/i18n/i18n.service';
/** Custom Imports */
import { GroupsComponent } from './groups.component';
/** Groups Routes */
const routes: Routes = [
Route.withShell([
{
path: 'groups',
component: GroupsComponent,
@@ -20,6 +22,11 @@ const routes: Routes = [
])
];
/**
* Groups Routing Module
*
* Configures the groups routes.
*/
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],