Base route that handles html computed title modification in particular routes

Usage: (in a routes file)

import BaseRoute from '@bennerinformatics/ember-fw/routes/base';

export default BaseRoute.extend({
    // Your code here
});
Show:
didTransition ()

This sets the title to the updated title, and adds an observer to change incase the title ever changes

error
(
  • error
  • transition
)
Boolean

Error method catches an error and will retry the error if it is a 500 error. After a certain amount of retries, it will just return a boolean "true" saying it did error.

Parameters:

  • error Object

    This is the error object that is passed when an error is thrown

  • transition Object

    This is the transition object that errored.

Returns:

updateTitle ()

Called to update the page's title from the current title

willTransition ()

This removes the observer to the updateTitle

_retries

Number

Numer of times to retry the model if it returns a 500 error