@@ -160,7 +160,7 @@ export class StateService {
160
160
* </pre>
161
161
* <img src='../ngdoc_assets/StateGoExamples.png'/>
162
162
*
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:
164
164
*
165
165
* - `$state.go('contact.detail')` - will go to the `contact.detail` state
166
166
* - `$state.go('^')` - will go to a parent state
@@ -242,7 +242,7 @@ export class StateService {
242
242
* });
243
243
* </pre>
244
244
*
245
- * @param {string } to State name.
245
+ * @param {string|object } to State name or state object .
246
246
* @param {object= } toParams A map of the parameters that will be sent to the state,
247
247
* will populate $stateParams.
248
248
* @param {object= } options Options object. The options are:
@@ -401,8 +401,8 @@ export class StateService {
401
401
* $state.includes("item.**"); // returns false
402
402
* </pre>
403
403
*
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.
406
406
* @param {object= } params A param object, e.g. `{sectionId: section.id}`,
407
407
* that you'd like to test against the current active state.
408
408
* @param {object= } options An options object. The options are:
0 commit comments