John Cowen a66973a274 ui: Native-ize class based helpers (#9337)
* Install ember-decorators/observes

* Remove filter-predicate

* Nativize `env` and inject env service

* Nativize all other class based helpers
2020-12-08 09:27:59 +00:00

11 lines
252 B
JavaScript

import Helper from '@ember/component/helper';
import { inject as service } from '@ember/service';
export default class UriHelper extends Helper {
@service('encoder') encoder;
compute(params, hash) {
return this.encoder.uriJoin(params);
}
}