angular-paginate-anything icon indicating copy to clipboard operation
angular-paginate-anything copied to clipboard

Multiple directives on same page share event(s)

Open umdstu opened this issue 9 years ago • 3 comments

There doesn't appear to be a way to differentiate between paginated elements on the same page when responding to their emitted events, ie. pagination:loadPage. I suggest adding an additional required scoped field, identifier, that is used in setting up events to listen on. See this branch: https://github.com/umdstu/angular-paginate-anything/tree/new-identifier-attribute

umdstu avatar Jan 12 '16 13:01 umdstu

Good idea. Love that you documented the changes too. Can you open a PR for this?

Also it would be good if the identifier was optional for when there is only one pagination element on the page.

begriffs avatar Jan 12 '16 18:01 begriffs

I'll update the change this week.

umdstu avatar Jan 13 '16 19:01 umdstu

@umdstu Seems like a useful feature, do you still have plans of sending in a PR?

bacbos avatar Feb 23 '17 13:02 bacbos