mirror of
https://github.com/angular/angular.git
synced 2026-11-29 09:57:50 -05:00
The `malformedUriErrorHandler` is used as a recovery mechanism for when the `UrlSerializer` throws an error when parsing a URL string. If custom error handling is desired for this, it should instead be done inside the `UrlSerializer.parse` method itself. There's no reason to have an entire feature option built around what can otherwise just be `try...catch`. BREAKING CHANGE: `malformedUriErrorHandler` is no longer available in the `RouterModule.forRoot` options. URL parsing errors should instead be handled in the `UrlSerializer.parse` method. PR Close #51745