i am encountering error with below
Var req_val= cmp.find("required").get("v.value");
earlier it was working fine, now it is not working getting
error
Uncaught Action failed: c$my_comp$controller$closeTask [TypeError: Cannot read property 'get' of undefined]
i am calling this function from Event
closeTask:function(cmp,event,helper){
console.log(cmp.find('required').get('v.value'));// here is the error
var eventId = event.getParam("recordId");
Event is registered in child and handling in parent. it consist of recordId.
required attribute is in parent. cant we get this attribute value in parent am getting as undefined.
please suggest.