mardi 22 novembre 2016

How to make a conditional link-to in Ember.js?

I am using Ember.js version 2.8.2.

I want to wrap things inside link-to only if condition is true.

First try:


  
    contents here
  
  
    contents here


Problem: the code is not dry, because content repeats twice.

How should I do this? Thanks.




Aucun commentaire:

Enregistrer un commentaire