All.
I written this sort of code before and now I cannot figure out what I'm doing wrong.
This snippet of code is running when the menu buttons are clicked.
$scope.show = function($index){
console.log($index);
};
The console log is returning 'undefined'.
Can any one help me figure out what I'm doing wrong?
Js bin below: https://jsbin.com/keteji/edit?html,js,console,output
Help is much appreciated.
Thanks, All