Transition#method()

method (method) Transitionpublic

Defined in bower_components/router.js/lib/router/transition.js:223

Sets the URL-changing method to be employed at the end of a successful transition. By default, a new Transition will just use updateURL, but passing 'replace' to this method will cause the URL to update using 'replaceWith' instead. Omitting a parameter will disable the URL change, allowing for transitions that don't update the URL at completion (this is also used for handleURL, since the URL has already changed before the transition took place).

Parameters:

method String
the type of URL-changing method to use at the end of a transition. Accepted values are 'replace', falsy values, or any other non-falsy value (which is interpreted as an updateURL transition).

Returns:

Transition
this transition
doc_EmberJs
2016-11-30 16:53:56
Comments
Leave a Comment

Please login to continue.