Created
July 26, 2016 17:00
-
-
Save KoKuToru/5bf36a7c8545e977b36ea0614fd28e0a to your computer and use it in GitHub Desktop.
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'; | |
const { Helper, inject, get } = Ember; | |
/* stolen from Ember.LinkComponent */ | |
export default Helper.extend({ | |
_routing: inject.service('-routing'), | |
compute([qualifiedRouteName, ...models], queryParams) { | |
let routing = get(this, '_routing'); | |
return routing.generateURL(qualifiedRouteName, models, queryParams); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment