Im on a lightning community, i have a lightning component and i want to open another component with this code:
navigateToMyComponent : function(component, event, helper) {
console.log('1');
var evt = $A.get("e.force:navigateToComponent");
console.log('2');
evt.setParams({
componentDef : "c:CompetenciaComponent"
});
console.log('3');
evt.fire();
console.log('4');
}
NOTHINGS HAPPEND AND I DONT KNOW WHY

this works but i cant receive the parameter in the other component
– Jul 26 '19 at 11:40