<file_sep>import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

export default Route.extend({
  init() {
    this._super(...arguments);

    this.on('routeDidChange', () => {
      const page = this.get('router.url');
      const title = this.getWithDefault('currentRouteName', 'unknown');
      this.get('metrics').trackPage({ page, title });
    });
  },

  metrics: service(),

  router: service()
});
<file_sep>{
  "name": "ivy-tabs",
  "version": "3.3.1",
  "description": "WAI-ARIA accessible tabs for Ember.",
  "keywords": [
    "ember",
    "ember-addon",
    "tabs"
  ],
  "repository": "https://github.com/IvyApp/ivy-tabs",
  "license": "MIT",
  "author": "<NAME>",
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "bugs": {
    "url": "https://github.com/IvyApp/ivy-tabs/issues"
  },
  "scripts": {
    "build": "ember build",
    "deploy": "ember build && ember github-pages:commit --message \"Deploy gh-pages from commit $(git rev-parse HEAD)\" && git push origin gh-pages:gh-pages",
    "format": "prettier --single-quote --write './*.js' './{addon,app,config,tests}/{**/,}*.js'",
    "lint:hbs": "ember-template-lint .",
    "lint:js": "eslint .",
    "release": "standard-version",
    "start": "ember server",
    "test": "ember test",
    "test:all": "ember try:each"
  },
  "dependencies": {
    "ember-cli-babel": "^7.7.3",
    "ember-cli-htmlbars": "^3.0.1"
  },
  "devDependencies": {
    "@commitlint/config-conventional": "^8.0.0",
    "@ember/optional-features": "^1.0.0",
    "@types/prettier": "^1.16.1",
    "bootstrap": "^4.0.0",
    "broccoli-asset-rev": "^3.0.0",
    "commitizen": "^3.0.7",
    "commitlint": "^8.0.0",
    "cz-conventional-changelog": "^2.1.0",
    "ember-cli": "~3.14.0",
    "ember-cli-app-version": "^3.1.0",
    "ember-cli-dependency-checker": "^3.1.0",
    "ember-cli-eslint": "^5.1.0",
    "ember-cli-github-pages": "^0.2.0",
    "ember-cli-htmlbars-inline-precompile": "^3.0.0",
    "ember-cli-inject-live-reload": "^2.0.1",
    "ember-cli-release": "^0.2.9",
    "ember-cli-sri": "^2.1.1",
    "ember-cli-template-lint": "^1.0.0-beta.1",
    "ember-cli-test-loader": "^2.2.0",
    "ember-cli-uglify": "^3.0.0",
    "ember-disable-prototype-extensions": "^1.1.3",
    "ember-export-application-global": "^2.0.0",
    "ember-load-initializers": "^2.0.0",
    "ember-maybe-import-regenerator": "^0.1.6",
    "ember-metrics": "^0.14.0",
    "ember-qunit": "^4.4.1",
    "ember-resolver": "^7.0.0",
    "ember-source": "~3.15.0",
    "ember-source-channel-url": "^2.0.1",
    "ember-try": "^1.0.0",
    "eslint-plugin-ember": "^6.3.0",
    "eslint-plugin-node": "^10.0.0",
    "husky": "^3.0.0",
    "loader.js": "^4.7.0",
    "prettier": "^1.11.1",
    "qunit-dom": "^0.9.0",
    "standard-version": "^7.0.0"
  },
  "resolutions": {
    "conventional-changelog": "~3.0.6"
  },
  "engines": {
    "node": "8.* || >= 10.*"
  },
  "ember-addon": {
    "configPath": "tests/dummy/config",
    "demoURL": "http://ivyapp.github.io/ivy-tabs/"
  },
  "config": {
    "commitizen": {
      "path": "cz-conventional-changelog"
    }
  },
  "husky": {
    "hooks": {
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
    }
  }
}
