0

I have a boolean attribute in component

Component

<aura:attribute name="isOpptyExists" type="Boolean" default="false"/>

Controller

var isOpptyExists = component.get("c.isOpptyExists");

alert(isOpptyExists) -- But I am not getting anything.

1 Answer 1

2

Its because you have to use the 'v' and not the 'c' object here.

var isOpptyExists = component.get("v.isOpptyExists");
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .