mardi 18 décembre 2018

Adding a class dynamically to hide only yield part of the ember component without wrapping

Is there any way to add a class(In my case it is hide class) dynamically to hide(display : none) only yield part of the ember component without wrapping the yield part of the component with tags (div,span or anyother) in Ember JS?

My Case :

 
     <p>Loading....!</p>
 
 <div class="">
     
 </div>

Here I want to hide the yield part without wrapping it up by a div tag

Note : I can't use If Else statement as it will create a new instance of component every time isLoading property changes. This is a component to show loading




Aucun commentaire:

Enregistrer un commentaire