@@ -17,8 +17,8 @@ var $$UMFP; // reference to $UrlMatcherFactoryProvider
17
17
* * `':'` name - colon placeholder
18
18
* * `'*'` name - catch-all placeholder
19
19
* * `'{' name '}'` - curly placeholder
20
- * * `'{' name ':' regexp '}'` - curly placeholder with regexp. Should the regexp itself contain
21
- * curly braces, they must be in matched pairs or escaped with a backslash.
20
+ * * `'{' name ':' regexp|type '}'` - curly placeholder with regexp or type name. Should the
21
+ * regexp itself contain curly braces, they must be in matched pairs or escaped with a backslash.
22
22
*
23
23
* Parameter names may contain only word characters (latin letters, digits, and underscore) and
24
24
* must be unique within the pattern (across both path and search parameters). For colon
@@ -39,6 +39,8 @@ var $$UMFP; // reference to $UrlMatcherFactoryProvider
39
39
* * `'/files/{path:.*}'` - Matches any URL starting with '/files/' and captures the rest of the
40
40
* path into the parameter 'path'.
41
41
* * `'/files/*path'` - ditto.
42
+ * * `'/calendar/{start:date}'` - Matches "/calendar/2014-11-12" (because the pattern defined
43
+ * in the built-in `date` Type matches `2014-11-12`) and provides a Date object in $stateParams.start
42
44
*
43
45
* @param {string } pattern The pattern to compile into a matcher.
44
46
* @param {Object } config A configuration object hash:
@@ -602,7 +604,7 @@ function $UrlMatcherFactory() {
602
604
* Defines whether URL matching should be case sensitive (the default behavior), or not.
603
605
*
604
606
* @param {boolean } value `false` to match URL in a case sensitive manner; otherwise `true`;
605
- * @return the current value of caseInsensitive
607
+ * @returns { boolean } the current value of caseInsensitive
606
608
*/
607
609
this . caseInsensitive = function ( value ) {
608
610
if ( isDefined ( value ) )
@@ -619,7 +621,7 @@ function $UrlMatcherFactory() {
619
621
* Defines whether URLs should match trailing slashes, or not (the default behavior).
620
622
*
621
623
* @param {boolean= } value `false` to match trailing slashes in URLs, otherwise `true`.
622
- * @return the current value of strictMode
624
+ * @returns { boolean } the current value of strictMode
623
625
*/
624
626
this . strictMode = function ( value ) {
625
627
if ( isDefined ( value ) )
0 commit comments