I'm using ngTable <http://bazalt-cms.com/ng-table/> for showing data on my ASP.net MVC project.On that directive I use pager template as shown below.
Here is the *Pagination template <http://bazalt-cms.com/ng-table/example/2>.* <!-- Pager Template --> <script type="text/ng-template" id="custom/pager"> <ul class="pager ng-cloak"> <li ng-repeat="page in pages" ng-class="{'disabled': !page.active, 'previous': page.type == 'prev', 'next': page.type == 'next'}" ng-show="page.type == 'prev' || page.type == 'next'" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">« Previous</a> <a ng-switch-when="next" ng-click="params.page(page.number)" href="">Next »</a> </li> <li> <div class="btn-group btn-group-sm"> <button type="button" ng-class="{'active':params.count() == 10}" ng-click="params.count(10)" class="btn btn-default">10</button> <button type="button" ng-class="{'active':params.count() == 25}" ng-click="params.count(25)" class="btn btn-default">25</button> <button type="button" ng-class="{'active':params.count() == 50}" ng-click="params.count(50)" class="btn btn-default">50</button> <button type="button" ng-class="{'active':params.count() == 100}" ng-click="params.count(100)" class="btn btn-default">100</button> </div> </li> </ul> </script> *My question is how can I separate it from my *.cshtml file and use when it needs for the other pages as well ? At this moment where I use same code block again and again on each and every page.So if you can simulate your solution on Plunk, it's highly appreciate.* -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
