We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7b7b77 commit a65c58fCopy full SHA for a65c58f
src/state/targetState.ts
@@ -5,6 +5,7 @@ import {ParamsOrArray} from "../params/interface";
5
import {TransitionOptions} from "../transition/interface";
6
7
import {State} from "./stateObject";
8
+import {toJson} from "../common/common";
9
10
/**
11
* @ngdoc object
@@ -75,4 +76,8 @@ export class TargetState {
75
76
if (!this._definition.self)
77
return `State '${this.name()}' has an invalid definition`;
78
}
79
+
80
+ toString() {
81
+ return `'${this.name()}'${toJson(this.params())}`;
82
+ }
83
0 commit comments