Router#startRouting()

startRoutingprivate Defined in packages/ember-routing/lib/system/router.js:181 Initializes the current router instance and sets up the change handling event listeners used by the instances location implementation. A property named initialURL will be used to determine the initial URL. If no value is found / will be used.

Router#rootURL

rootURLpublic Defined in packages/ember-routing/lib/system/router.js:72 Represents the URL of the root of the application, often '/'. This prefix is assumed on all routes defined on this router. Default: '/'

Router#reset()

resetprivate Defined in packages/ember-routing/lib/system/router.js:444 Resets the state of the router by clearing the current route handlers and deactivating them.

Router#map()

map (callback) public Defined in packages/ember-routing/lib/system/router.js:1145 The Router.map function allows you to define mappings from URLs to routes in your application. These mappings are defined within the supplied callback function using this.route. The first parameter is the name of the route which is used by default as the path name as well. The second parameter is the optional options hash. Available options are: path: allows you to provide your own path as well as mark dynami

Router#location

locationpublic Defined in packages/ember-routing/lib/system/router.js:52 The location property determines the type of URL's that your application will use. The following location types are currently available: history - use the browser's history API to make the URLs look just like any standard URL hash - use # to separate the server part of the URL from the Ember part: /blog/#/posts/new none - do not store the Ember URL in the actual browser URL (mainly used for testing) auto - use the

Router#isActiveIntent()

isActiveIntent (routeName, models, queryParams) Booleanprivate Defined in packages/ember-routing/lib/system/router.js:412 Available since 1.7.0 An alternative form of isActive that doesn't require manual concatenation of the arguments into a single array. Parameters: routeName models queryParams Returns: Boolean

Router#isActive()

isActive (routeName) Booleanprivate Defined in packages/ember-routing/lib/system/router.js:399 Determines if the supplied route is currently active. Parameters: routeName Returns: Boolean

Router#hasRoute()

hasRouteBooleanprivate Defined in packages/ember-routing/lib/system/router.js:433 Does this router instance have the given route. Returns: Boolean

Router#didTransition()

didTransitionpublic Defined in packages/ember-routing/lib/system/router.js:227 Available since 1.2.0 Handles updating the paths and notifying any listeners of the URL change. Triggers the router level didTransition hook. For example, to notify google analytics when the route changes, you could use this hook. (Note: requires also including GA scripts, etc.) let Router = Ember.Router.extend({ location: config.locationType, didTransition: function() { this._super(...arguments); r

Router

Ember.Router Class PUBLIC Extends: Ember.Object Uses: Ember.Evented Defined in: packages/ember-routing/lib/system/router.js:41 Module: ember-routing The Ember.Router class manages the application state and URLs. Refer to the routing guide for documentation.