deveau-a
1/2/2018 - 1:17 PM

Add an Eq helper for ember (if conditionnal, call in hbs with : if (eq attr "val"))

Add an Eq helper for ember (if conditionnal, call in hbs with : if (eq attr "val"))

import Ember from 'ember';
 
const eq = (params) => params[0] === params[1];
export default Ember.Helper.helper(eq);