This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'fetch'; | |
import { mockServer } from 'ember-cli-fastboot-testing/test-support'; | |
import { all } 'rsvp'; | |
export default new class MockServer { | |
constructor () { | |
this.namespace = 'mirage-namespace'; | |
this.promises = []; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import { inject as service } from '@ember/service'; | |
export default Ember.Component.extend({ | |
router: service(), | |
actions: { | |
click () { | |
this.router.transitionTo('destination', { queryParams: { q: 123 }} ).catch(e => console.log('Look there is an error:', e)); | |
} |