+ Start a Discussion
Rahul Singh 1384Rahul Singh 1384 

Reload a div on the click of a button in lightning component

I have to refresh a div in a Lightning Component, the same as how we use rerender in a Visualforce Page. How can I do so?
Prakash NawalePrakash Nawale

You can use Aura: if se componet to rerender the elements.
e.g.  <aura:if isTrue="{!v.showDiv}">
        <div> Logic here </div

set the showDiv property value from js controller