angular-advanced-course
angular-advanced-course copied to clipboard
modal component -evt.preventDefault() & stopPropagation() interfering with <a href inside the modal
Hello,
While following the course, I added an <a>
tag with href='some_url'
, with the purpose of being able to go to that url upon clicking the button inside the modal;
The problem is that every click is met by the 'cancelClick()'
function inside the component, which stops any event taking place; I'm not being taken to the link i want to go.
The only way this works is through a (click)
event but it's not as clean.
Is there some easy work around for this?