jQuery-ListNav
jQuery-ListNav copied to clipboard
Angular directive?
Has anyone gotten this to work with an ng-repeated li in Angular? This is what we tried but no luck:
.directive('ngAlphaListNav', function() { return { restrict: 'A', link: function(scope, element, attrs) { listnavattr = angular.fromJson(attrs.ngAlphaListNav); ulid=listnavattr.ulid; delete listnavattr.ulid; if (scope.$last){ $("#" + ulid).listnav(listnavattr); } } } });
And this HTML (Jade):
customlist-nav
ul#customlist li.item(ng-repeat='foo in foos', id='{{foo.id}}', ng-alpha-list-nav='{ "includeAll": "false", "ulid": "customlist" }')