If I do
<li class="active"><a href="#"></a></li>
<li><a href="#"></a></li>
It works well, but it is too repetitive...
I wanna make an inline if like this:
<li ><a href="#"></a></li>
But this gives the following error:
TypeError: options.template is undefined
Which I couldn't find anywhere. The closest topic I found was this one, but it is not what I want...
My eq
helper is:
import Ember from 'ember';
const eq = (params) => params[0] === params[1];
export default Ember.Helper.helper(eq);
Aucun commentaire:
Enregistrer un commentaire