IParsedRouteSegment interface
And individual segment of the route (fixed text or a parameter)
Properties
is |
Whether the parameter is required in order for the URL to be valid. |
is |
For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/") |
param |
If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both. |
text | If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both. |
Property Details
isRequiredParam
Whether the parameter is required in order for the URL to be valid.
isRequiredParam?: boolean
Property Value
boolean
isWildCardParam
For parameters, whether or not this parameter is a wildcard (*) parameter, which means it allows multiple path segments (i.e. don't escape "/")
isWildCardParam?: boolean
Property Value
boolean
paramName
If present, the name of the route value parameter to substitute for this segment. Either text or paramName will be defined for a segment, never both.
paramName?: string
Property Value
string
text
If present, the fixed text for this segement. Either text or paramName will be defined for a segment, never both.
text?: string
Property Value
string
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour