Form categories using ng-repeat working