Skip to content

Commit

Permalink
update navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
CGuether committed Apr 23, 2021
1 parent 6c89980 commit c16df88
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions local-data-example/data-grid/local-data-grid.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,32 @@ import { LocalDataGridComponent } from "./local-data-grid.compontent";

const routes: Routes = [
{
path: "samples/data-grid",
path: "data-grid",
component: LocalDataGridComponent,
},
{
path: '',
redirectTo: 'data-grid',
pathMatch: 'full'
}
];

const samples = new NavigatorNode({
label: "Examples",
icon: "road",
const dataGridNavigation = new NavigatorNode({
label: "Local Data Grid",
icon: "table",
priority: 1,
});

samples.add(
new NavigatorNode({
label: "Data Grid",
path: "/samples/data-grid",
icon: "table",
priority: 1,
})
);

@NgModule({
declarations: [LocalDataGridComponent],
entryComponents: [],
imports: [RouterModule.forChild(routes), CoreModule],
providers: [
{
provide: HOOK_NAVIGATOR_NODES,
useValue: { get: () => samples },
useValue: { get: () => dataGridNavigation },
multi: true,
},
],
})
export class LocalDataGridModule {}
export class LocalDataGridModule { }

0 comments on commit c16df88

Please sign in to comment.