Considering the problem of sorting only a handful of items that are on the current page, I guess sorting using the "orderBy" filter inside ng-repeat tag is not a good idea. So the solution is to apply sorting in AngularJS controller and here is how you can do that.
Sorting in Angular JS along with paging - (in View)
Below is the code for applying sorting in Angular js table along with paging applied. In this code the sorting is done on the view only i.e. sorting is done using attributes in the ng-repeat tag itself.
Comparitive study of AngularJS, KnockoutJS and ReactJS
Here is a high level comparison of AngularJS, KnockoutJS and ReactJS. Going through this comparison might just help you in deciding which framework/library to choose for your project.
Accessing properties and methods of an object in C# using Reflection
There might be situations where you want to loop through the members of an object or you want to create some generic means to access the members of one or more classes, so here is how you can access the members of an object in C# in a generic manner.
Drag and Drop using jquery ui
Here is a small sample that demonstrates the use of jQuery UI's drag and drop functionality
Using Authorize attribute in .NET MVC with custom authentication
Here is how you can use Authorize attribute in .NET MVC to authenticate and authorize user requests.
Calling a Oracle S.P. that is returning REFCURSOR through Entity Framework
Here are the steps for how to call Oracle S.P. that is returning REFCURSOR through Entity Framework :-
Restrict desktop application to single instance using MUTEX
Here is the code to restrict a desktop application to single instance (for creating single instance per user application follow the link).
Single instance per user of desktop application (.NET)
Here is the code to restrict a desktop application to single instance per user (for single instance desktop application follow the link).
Uploading file using ajax and wcf rest
The simple implementation to upload a file using ajax to wcf rest service is explained as:-
Hide Bootstrap Datetimepicker Decade view
Many people want to hide Bootstrap Datetimepicker's decade view. Here's the simplest way to do this...
Subscribe to:
Posts (Atom)