import Component from '@ember/component'; import { inject as service } from '@ember/service'; export default Component.extend({ router: service(), actions: { goToDetail(item) { console.log(item); if (item.notificationType == "news") { this.router.transitionTo("news-management.preview", item.documentRefId); } else if (item.notificationType == "account_management") { this.router.transitionTo("account-management"); } else if (item.notificationType == "vehicle_management") { this.router.transitionTo("vehicle-management"); } }, } });