Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a boolean attribute in component
<aura:attribute name="isOpptyExists" type="Boolean" default="false"/>
var isOpptyExists = component.get("c.isOpptyExists");
alert(isOpptyExists) -- But I am not getting anything.
Its because you have to use the 'v' and not the 'c' object here.
var isOpptyExists = component.get("v.isOpptyExists");
Required, but never shown