Skip to content

Instantly share code, notes, and snippets.

@CliffCrerar
Created June 13, 2020 13:55
Show Gist options
  • Save CliffCrerar/1cebd498f264977c72799ea170c013ee to your computer and use it in GitHub Desktop.
Save CliffCrerar/1cebd498f264977c72799ea170c013ee to your computer and use it in GitHub Desktop.
Angular Router config
const routerConfig = {
// enableTracing?: boolean
// useHash?: boolean
// initialNavigation?: InitialNavigation
// errorHandler?: ErrorHandler
// preloadingStrategy?: any
// onSameUrlNavigation?: 'reload' | 'ignore'
// scrollPositionRestoration?: 'disabled' | 'enabled' | 'top'
// anchorScrolling?: 'disabled' | 'enabled'
// scrollOffset?: [number, number] | (() => [number, number])
// paramsInheritanceStrategy?: 'emptyOnly' | 'always'
// malformedUriErrorHandler?: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree
// urlUpdateStrategy?: 'deferred' | 'eager'
// relativeLinkResolution?: 'legacy' | 'corrected'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment