I have two arrays, one for alphabets and one for tags. Therefore, I want to show only the same elements of the alphabet in this particular category of the alphabet as
an example - an apple should go into category A, and the zoo should go into category Z ...
link http://jsfiddle.net/4dGxn/149/
HTML
<div class="form-group" ng-controller="mainCtrl">
<div ng-repeat="alp in alpha">
<h2>{{alp}}</h2>
<ul>
<li ng-repeat="tag in tags">{{tag}}</li>
</ul>
</div>
</div>
angular
var app = angular.module("app", []);
app.controller("mainCtrl", ['$scope', function($scope){
$scope.alpha = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p","q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
$scope.tags = ["apple", "dog", "cat", "dad", "baby", "zoo", "love", "hate", "rat", "room", "home", "age", "bad"];
}]);