I have an array containing letters from A to Z and I want to create a list of buttons using them.
$scope.alphabet = "abcdefghijklmnopqrstuvwxyz".split("");
I also have another array:
$scope.uniqChar = ['a', 'g', 'm'];
With this array, I want to create a button list where all buttons are disabled except for the ones with names 'a', 'g', 'm' (as in $scope.uniqChar).
I attempted this in jsfiddle, but the output appeared three times. I want it to show only once. Any insights on how to achieve this?