This component is used to create a link to another FW app. It is used similarly to the Ember LinkTo helper.

To use inline, parameters must be provided for the link name, the app ID, and the route name. An optional query parameters object can be added at the end. See the Ember docs for more information on query params

<FwAppLink @title='Link Text' @appId='appId' @route='route.name' />
<FwAppLink @title='Link Text' @appId='appId' @route='route.name' @query= />

When used in block format, the block contents are used in place of link text, so the first parameter is the app ID. An optional block parameter is passed containing the app metadata:

<FwAppLink @appId='appId' @route='route.name' as |app|>
    <i></i>
</FwAppLink>
<FwAppLink @appId='appId' @route='route.name' @query=>
    <i>Block text</i>
</FwAppLink>

If the app is missing or the user does not have access to the app, no HTML will be rendered. Use the has-app helper to show content when the app is missing.

Show:

Properties

app

EmberObject private

App meta object for the related app. Will be null if the app is not found. Set by didReceiveAttrs.

appId

String

Shortcode of app

params

Array deprecated

Dynamic parameters array. This is deprecated and should not be used. Specify all your parameters

queryParams

Object deprecated private

This is deprecated. Query parameters for the link. It was set if using the params array and passed query params using the query-params helper, but the preferred method is using the @query property, as is described here

queryString

Computed String deprecated private

Computed property of URL encoded query params. This is again deprecated as it relies on the params order of the old way rather than specified values, as is with the new syntax.

route

String

Route within the app you are linking to

title

String

Link title, will be null in block form

url

Computed String private

Computed property of link URL within the other app.