ember-metrics-mixins
v1.0.0
Published
ember-metrics mixins
Downloads
4
Readme
ember-metrics-mixins
This mixin will add the ember-metrics
boilerplate to your router.
Installation
ember install ember-metrics-mixins
Usage
Add this to your app/router.js
:
import EmberMetricsRouterMixin from 'ember-metrics-mixins/mixins/router';
const Router = Ember.Router.extend(EmberMetricsRouterMixin, {
// ...
// optional
mergeAdditionalOptions(infos) {
// get something off `infos`
return {
foo: 'bar'
};
}
});
It sends trackPage
with url
, routeName
, and whatever else you merged.
License
This project is licensed under the MIT License.