Never mind, I found the answer. The event variable has property "
cancelBubble". Setting it to true (event.cancelBubble = true;) will do the 
job.

On Tuesday, December 15, 2015 at 2:12:33 PM UTC-5, JG wrote:
>
> I have two components, one is nested inside the other. Both components 
> have (click)="doSomething($event)" The outer component's doSomething 
> method redirects to a different view. I would like the inner component's 
> doSomething method to perform it's work and stop redirection, something 
> like event.preventDefault().
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to