I have make image slider in angularjs with google material. My slider is working but I have two issue
- I could not bind keypress
- My images are sliding but both side together and then first hide after few seconds
Some code is over here
$scope.onKeyUp = function (keyCode) {
console.log("I am here;")
if (keyCode === LEFT_ARROW) {
$scope.prevSlide;
} else if (keyCode === RIGHT_ARROW) {
$scope.nextSlide;
}
}
and full codepen is https://codepen.io/milindsaraswala/pen/yJaYpe
Kindly somebody help, what can be the issue.