Skip to content

Commit 9c009c6

Browse files
Merge pull request #2887 from dtarasiuk/doc/state
doc(StateService): update StateService doc
2 parents 19d0444 + c68813d commit 9c009c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/state/stateService.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class StateService {
160160
* </pre>
161161
* <img src='../ngdoc_assets/StateGoExamples.png'/>
162162
*
163-
* @param {string} to Absolute state name or relative state path. Some examples:
163+
* @param {string|object} to Absolute state name, state object, or relative state path. Some examples:
164164
*
165165
* - `$state.go('contact.detail')` - will go to the `contact.detail` state
166166
* - `$state.go('^')` - will go to a parent state
@@ -242,7 +242,7 @@ export class StateService {
242242
* });
243243
* </pre>
244244
*
245-
* @param {string} to State name.
245+
* @param {string|object} to State name or state object.
246246
* @param {object=} toParams A map of the parameters that will be sent to the state,
247247
* will populate $stateParams.
248248
* @param {object=} options Options object. The options are:
@@ -401,8 +401,8 @@ export class StateService {
401401
* $state.includes("item.**"); // returns false
402402
* </pre>
403403
*
404-
* @param {string} stateOrName A partial name, relative name, or glob pattern
405-
* to be searched for within the current state name.
404+
* @param {string|object} stateOrName A partial name, relative name, glob pattern,
405+
* or state object to be searched for within the current state name.
406406
* @param {object=} params A param object, e.g. `{sectionId: section.id}`,
407407
* that you'd like to test against the current active state.
408408
* @param {object=} options An options object. The options are:

0 commit comments

Comments
 (0)