Transition#then()

then (onFulfilled, onRejected, label) Promisepublic

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

A standard promise hook that resolves if the transition succeeds and rejects if it fails/redirects/aborts.

Forwards to the internal promise property which you can use in situations where you want to pass around a thennable, but not the Transition itself.

Parameters:

onFulfilled Function
onRejected Function
label String
optional string for labeling the promise. Useful for tooling.

Returns:

Promise
doc_EmberJs
2016-11-30 16:53:57
Comments
Leave a Comment

Please login to continue.