Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks. Chose the option to pass the event in and it worked like a charm. I needed to put the router.navigate after the event method calls for the route navigation to work. Commented Mar 25, 2016 at 20:33
  • 2
    for me save($event) works wheras @directive events doesn't. Thanks ! Commented May 20, 2016 at 12:51
  • 1
    I found that if my <button> element is inside a <form> element that I need to stop propagation of the event. However, outside a <form> element, the (click) event does not cause the page to reload. Commented Oct 4, 2016 at 23:36