javascript - how to reuse ui-grid external pagination and sort methods? -


i'm trying use ui-grid external pagination , external sort in project. how can modify ui-grid once , use several place?

at first, in case modifications not required :) answering question forking ui-grid repo perfect. , can still use bower :)

ui-grid able handle sorting , pagination config object. i'm using ui-router modify page url current page number or name of sorted column.

i mixed 2 examples docs - external sorting , external pagination, show them both working together.

so if want re-use in easy way, make service or simple decorator.

cheers!

http://plnkr.co/edit/xd06tjctqsg6yiwpjrsn?p=preview


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -