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!
Comments
Post a Comment