I am not able to get the reference to an application level Lightning Event inside an Lightning component.
I have defined an application level event named 'MemberEvent' and I have registered it in component UI like this,
<aura:registerEvent name="MemberEvent" type="c:MemberEvent"/>
Now inside an action of js controller, I am trying to call this event like,
var mEvent = $A.get("e.c:MemberEvent");
But in mEvent is undefined and I am not able to set the parameter. This is a general format to get an event but I am not able to understand why I am not getting this reference. Please help me here if I am missing any of the steps or check to invoke an event.
Thanks