Glob | @uirouter/angular
Constructors
new Glob( text: string ) : Glob
Parameters
Defined in ui-router-core/src/common/glob.ts:63
Properties
glob: Array < string >
Defined in ui-router-core/src/common/glob.ts:52
regexp: RegExp
Defined in ui-router-core/src/common/glob.ts:53
text: string
Defined in ui-router-core/src/common/glob.ts:51
Methods
matches( name: string ) : boolean
Parameters
Returns boolean
Defined in ui-router-core/src/common/glob.ts:81
fromString( text: string ) : Glob
Parameters
Defined in ui-router-core/src/common/glob.ts:61
is( text: string ) : boolean
Parameters
Returns boolean
Defined in ui-router-core/src/common/glob.ts:56
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Matches state names using glob-like pattern strings.
Globs can be used in specific APIs including:
A
Glob
string is a pattern which matches state names. Nested state names are split into segments (separated by a dot) when processing. The state namedfoo.bar.baz
is split into three segments ['foo', 'bar', 'baz']Globs work according to the following rules:
Exact match:
The glob
'A.B'
matches the state named exactly'A.B'
.'A'
'A'
'B'
,'A.C'
'A.B'
'A.B'
'A'
,'A.B.C'
'foo'
'foo'
'FOO'
,'foo.bar'
Single star (
*
)A single star (
*
) is a wildcard that matches exactly one segment.'*'
'A'
,'Z'
'A.B'
,'Z.Y.X'
'A.*'
'A.B'
,'A.C'
'A'
,'A.B.C'
'A.*.*'
'A.B.C'
,'A.X.Y'
'A'
,'A.B'
,'Z.Y.X'
Double star (
**
)A double star (
'**'
) is a wildcard that matches zero or more segments'**'
'A'
,'A.B'
,'Z.Y.X'
'A.**'
'A'
,'A.B'
,'A.C.X'
'Z.Y.X'
'**.X'
'X'
,'A.X'
,'Z.Y.X'
'A'
,'A.login.Z'
'A.**.X'
'A.X'
,'A.B.X'
,'A.B.C.X'
'A'
,'A.B.C'