API / ember-link/test-support / TestLink
Class: TestLink
Extends
Constructors
new TestLink()
new TestLink(linkManager, params): TestLink
Parameters
Parameter | Type |
---|---|
linkManager | LinkManagerService |
params | LinkParams |
Returns
Inherited from
Defined in
Accessors
isActive
Get Signature
get isActive(): boolean
Whether this route is currently active, including potentially supplied models and query params.
Returns
boolean
Set Signature
set isActive(active): void
Whether this route is currently active, including potentially supplied models and query params.
Parameters
Parameter | Type |
---|---|
active | boolean |
Returns
void
Overrides
Defined in
ember-link/src/test-support/test-link.ts:13
isActiveWithoutModels
Get Signature
get isActiveWithoutModels(): boolean
Whether this route is currently active, but ignoring models and query params.
Returns
boolean
Set Signature
set isActiveWithoutModels(active): void
Whether this route is currently active, but ignoring models and query params.
Parameters
Parameter | Type |
---|---|
active | boolean |
Returns
void
Overrides
Defined in
ember-link/src/test-support/test-link.ts:33
isActiveWithoutQueryParams
Get Signature
get isActiveWithoutQueryParams(): boolean
Whether this route is currently active, including potentially supplied models, but ignoring query params.
Returns
boolean
Set Signature
set isActiveWithoutQueryParams(active): void
Whether this route is currently active, including potentially supplied models, but ignoring query params.
Parameters
Parameter | Type |
---|---|
active | boolean |
Returns
void
Overrides
Link
.isActiveWithoutQueryParams
Defined in
ember-link/src/test-support/test-link.ts:23
isEntering
Get Signature
get isEntering(): boolean
Whether this route is currently being transitioned into / entered.
Returns
boolean
Set Signature
set isEntering(entering): void
Whether this route is currently being transitioned into / entered.
Parameters
Parameter | Type |
---|---|
entering | boolean |
Returns
void
Overrides
Defined in
ember-link/src/test-support/test-link.ts:43
isExiting
Get Signature
get isExiting(): boolean
Whether this route is currently being transitioned out of / exited.
Returns
boolean
Set Signature
set isExiting(exiting): void
Whether this route is currently being transitioned out of / exited.
Parameters
Parameter | Type |
---|---|
exiting | boolean |
Returns
void
Overrides
Defined in
ember-link/src/test-support/test-link.ts:53
models
Get Signature
get models(): RouteModel[]
The route models passed in this link.
Returns
RouteModel
[]
Inherited from
Defined in
qualifiedRouteName
Get Signature
get qualifiedRouteName(): string
The fully qualified target route name of this link.
Returns
string
Overrides
Defined in
ember-link/src/test-support/test-link.ts:75
queryParams
Get Signature
get queryParams(): undefined | QueryParams
The query params for this link, if specified.
Returns
undefined
| QueryParams
Inherited from
Defined in
routeName
Get Signature
get routeName(): string
The target route name of this link.
Returns
string
Inherited from
Defined in
url
Get Signature
get url(): string
The URL for this link that you can pass to an <a>
tag as the href
attribute.
Returns
string
Set Signature
set url(url): void
The URL for this link that you can pass to an <a>
tag as the href
attribute.
Parameters
Parameter | Type |
---|---|
url | string |
Returns
void
Overrides
Defined in
ember-link/src/test-support/test-link.ts:63
Methods
onReplaceWith()?
optional onReplaceWith(): void
Returns
void
Defined in
ember-link/src/test-support/test-link.ts:73
onTransitionTo()?
optional onTransitionTo(): void
Returns
void
Defined in
ember-link/src/test-support/test-link.ts:72
open()
open(event?): undefined | PublicTransition
Parameters
Parameter | Type |
---|---|
event ? | Event |
Returns
undefined
| PublicTransition
Overrides
Defined in
ember-link/src/test-support/test-link.ts:104
replaceWith()
replaceWith(event?): PublicTransition
Transition into the target route while replacing the current URL, if possible.
Parameters
Parameter | Type |
---|---|
event ? | Event |
Returns
PublicTransition
Overrides
Defined in
ember-link/src/test-support/test-link.ts:92
toString()
toString(): string
Alias for url
.
Allows for more ergonomic composition as query parameters.
{{link "foo" query=(hash bar=(link "bar"))}}
Returns
string
Inherited from
Defined in
transitionTo()
transitionTo(event?): PublicTransition
Transition into the target route.
Parameters
Parameter | Type |
---|---|
event ? | Event |
Returns
PublicTransition