Skip to content

Call Intercom.update w/ Ember route transitions #1

Description

@wireframe

example implementation:

// app/initializers/intercom-router.js
import Ember from 'ember';
const {
  inject,
  on,
  Router
} = Ember;

export function initialize() {
  Router.reopen({
    intercom: inject.service(),

    notifyIntercom: on('didTransition', function() {
      this.get('intercom').update();
    })
  });
}

export default {
  name: 'router',
  initialize
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions