jQuery-ListNav icon indicating copy to clipboard operation
jQuery-ListNav copied to clipboard

Angular directive?

Open mmealling opened this issue 11 years ago • 0 comments

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" }')

mmealling avatar Jun 23 '14 19:06 mmealling