Skip to content

Instantly share code, notes, and snippets.

@kaplan81
Created December 28, 2018 14:33
Show Gist options
  • Save kaplan81/fc0c136eed317b4fac1dd1d224b29fc9 to your computer and use it in GitHub Desktop.
Save kaplan81/fc0c136eed317b4fac1dd1d224b29fc9 to your computer and use it in GitHub Desktop.
import { NavigationExtras, Params } from '@angular/router';
export interface NavRoute<P> {
path: ['/', ...P[]];
query?: Params;
extras?: NavigationExtras;
callback?: (value?: any) => any;
}
export interface NavLink<P> extends NavRoute<P> {
text: string;
icon?: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment