mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The `UrlTree` is a fundamental concept in the router's API design. Generally speaking, a `UrlTree` would be constructed via things like `Router.createUrlTree` or `UrlSerializer#parse`. The second example here is the core reason to make the constructor public, regardless of how develpers generally create a `UrlTree` in an application. Applications can provide their own `UrlSerializer` and may want to implement their own `parse` method. This means they would also need to create a `UrlTree` but would not be able to do so effectively because the constructor is marked `@internal`. In addition, the `UrlTree` constructor only has 3 parameters, all of which are already public. There's nothing "special" about it other than the potential desire to push developers to use other methods for constructing a `UrlTree` (i.e. `Router.createUrlTree`). Also see http://b/234604699#comment9 for additional context. PR Close #47186
1.1 KiB
1.1 KiB
API Report File for "angular-srcs"
Do not edit this file. It is a report generated by API Extractor.
// @public
export const enum RuntimeErrorCode {
// (undocumented)
EMPTY_PATH_WITH_PARAMS = 4009,
// (undocumented)
FOR_ROOT_CALLED_TWICE = 4007,
// (undocumented)
INVALID_DOUBLE_DOTS = 4005,
// (undocumented)
INVALID_ROOT_URL_SEGMENT = 4015,
// (undocumented)
INVALID_ROUTE_CONFIG = 4014,
// (undocumented)
MISPLACED_OUTLETS_COMMAND = 4004,
// (undocumented)
MISSING_REDIRECT = 4001,
// (undocumented)
NAMED_OUTLET_REDIRECT = 4000,
// (undocumented)
NO_MATCH = 4002,
// (undocumented)
NULLISH_COMMAND = 4008,
// (undocumented)
OUTLET_ALREADY_ACTIVATED = 4013,
// (undocumented)
OUTLET_NOT_ACTIVATED = 4012,
// (undocumented)
ROOT_SEGMENT_MATRIX_PARAMS = 4003,
// (undocumented)
TWO_SEGMENTS_WITH_SAME_OUTLET = 4006,
// (undocumented)
UNEXPECTED_VALUE_IN_URL = 4011,
// (undocumented)
UNPARSABLE_URL = 4010
}
// (No @packageDocumentation comment for this package)