home
  • Blog
  • Home
  • Projects
    • Ember
    • EmberData
    • Ember CLI
6.2
  • Packages
    • @ember/application
    • @ember/application/namespace
    • @ember/array
    • @ember/array/proxy
    • @ember/canary-features
    • @ember/component
    • @ember/component/template-only
    • @ember/controller
    • @ember/debug
    • @ember/debug/container-debug-adapter
    • @ember/debug/data-adapter
    • @ember/destroyable
    • @ember/engine
    • @ember/helper
    • @ember/object
    • @ember/object/core
    • @ember/object/evented
    • @ember/object/mixin
    • @ember/object/observable
    • @ember/object/promise-proxy-mixin
    • @ember/object/proxy
    • @ember/owner
    • @ember/renderer
    • @ember/routing
    • @ember/routing/hash-location
    • @ember/routing/history-location
    • @ember/routing/location
    • @ember/routing/none-location
    • @ember/routing/route
    • @ember/routing/route-info
    • @ember/routing/router
    • @ember/routing/router-service
    • @ember/routing/transition
    • @ember/runloop
    • @ember/service
    • @ember/template
    • @ember/test
    • @ember/utils
    • @glimmer/tracking
    • @glimmer/tracking/primitives/cache
    • rsvp
  • Classes
    • Application
    • ApplicationInstance
    • ApplicationInstance.BootOptions
    • ArrayProxy
    • Component
    • ComputedProperty
    • ContainerDebugAdapter
    • CoreObject
    • DataAdapter
    • Ember.Controller
    • Ember.NativeArray
    • Ember.Templates.helpers
    • Ember.Test
    • Ember.Test.QUnitAdapter
    • EmberArray
    • EmberENV
    • EmberObject
    • EmberRouter
    • Engine
    • EngineInstance
    • EventTarget
    • Evented
    • Factory
    • FactoryManager
    • FullName
    • HashLocation
    • Helper
    • HistoryLocation
    • Location
    • Mixin
    • MutableArray
    • Namespace
    • NoneLocation
    • ObjectProxy
    • Observable
    • Owner
    • Promise
    • PromiseProxyMixin
    • RegisterOptions
    • Renderer
    • Resolver
    • Route
    • RouteInfo
    • RouteInfoWithAttributes
    • RouterService
    • SafeString
    • Service
    • TestAdapter
    • Transition

Class RouteInfo public


Defined in: packages/@ember/routing/route-info.ts:20
Module: @ember/routing/route-info

A RouteInfo is an object that contains metadata about a specific route within a Transition. It is read-only and internally immutable. It is also not observable, because a Transition instance is never changed after creation.

A RouteInfo is not user-constructible; the only legal way to get one is from a valid Transition. However, you can import the type by using import type syntax with TypeScript or import() in JSDoc comments.


Methods

find (callback, target*) : Object public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:91

callback
Function

the callback to execute

target*
Object

optional target to use

returns
Object

Found item or undefined

Allows you to traverse through the linked list of RouteInfos from the topmost to leafmost. Returns the first RouteInfo in the linked list for which the callback returns true.

This method is similar to the find() method defined in ECMAScript 2015.

The callback method you provide should have the following signature (all parameters are optional):

function(item, index, array);
  • item is the current item in the iteration.
  • index is the current index in the iteration.
  • array is the array itself.

It should return the true to include the item in the results, false otherwise.

Note that in addition to a callback, you can also pass an optional target object that will be set as this on the context.

Properties

child public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:84

A reference to the child route's RouteInfo. This can be used to traverse downward to the leafmost RouteInfo.

localName public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:40

The final segment of the fully-qualified name of the route, like "index"

metadata public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:70

Will contain the result Route#buildRouteInfoMetadata for the corresponding Route.

name public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:34

The dot-separated, fully-qualified name of the route, like "people.index".

paramNames public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:55

The ordered list of the names of the params required for this route. It will contain the same strings as Object.keys(params), but here the order is significant. This allows users to correctly pass params into routes programmatically.

params public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:46

The values of the route's parameters. These are the same params that are received as arguments to the route's model hook. Contains only the parameters valid for this route, if any (params for parent or child routes are not merged).

parent public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:77

A reference to the parent route's RouteInfo. This can be used to traverse upward to the topmost RouteInfo.

queryParams public

Module: @ember/routing/route-info

Defined in packages/@ember/routing/route-info.ts:64

The values of any queryParams on this route.

On this page


Methods

  • find

Properties

  • child
  • localName
  • metadata
  • name
  • paramNames
  • params
  • parent
  • queryParams
Team Sponsors Security Legal Branding Community Guidelines
Twitter GitHub Discord Mastodon

If you want help you can contact us by email, open an issue, or get realtime help by joining the Ember Discord.

© Copyright 2025 - Tilde Inc.
Ember.js is free, open source and always will be.


Ember is generously supported by
blue Created with Sketch.