I´m using slick.js slider in my angularJs web app. The plugin is working fine. I have the prev and next pagination buttons. All slick code is inside an anchor link to another page. When, I click in the prev or next button, the slick is sliding but the link is opened as well. So, I would like to prevent to open the link on buttons click that are styled over the link.
Please see simplified structure.
<a ng-href="wherever" target="_blank">
<div class="photo-box">
<div class="slick-container" slick>
<div class="item" ng-repeat="photo in item.photos">
<img ng-src="url-to-image" />
</div>
</div>
</div>
<a/>
When the code is parsed, the buttons re created like: <button class="slick-next slick-arrow" aria-label="Next" type="button" style="display: inline-block;">Next</button>
As said, when I click in the button, the slider works but the link is opened as well.