Sorting problem after grunt build
See original GitHub issueSorting wont work after ‘grunt build’, I assume it is the js-minify that somehow breaks it. Nothing happens when I click a header. Strange though that everything else works. Anyone with similar problems?
Here’s my directive controller
controller: ['$scope', '$filter', 'ScoresAPI', 'ngTableParams', function($scope, $filter, ScoresAPI, ngTableParams)
{
ScoresAPI.getLeagueStandings($scope.leagueId)
.success(function(data)
{
$scope.tableParams = new ngTableParams({
page: 1,
count: data.length,
sorting: false
}, {
total: data.length,
counts: [],
getData: function($defer, params)
{
var orderedData = params.sorting() ? $filter('orderBy')(data, params.orderBy()) : data;
$defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count()));
}
});
});
}]
Issue Analytics
- State:
- Created 10 years ago
- Comments:29
Top Results From Across the Web
angularjs code is not working after grunt build - Stack Overflow
using grunt --force command to build. When I run the build it does not show any errors in console and under netowek tab...
Read more >Problem capturing error output · Issue #117 · gruntjs/grunt
I have a Windows 2008 R2 server x86 (on EC2) as a Jenkins server. All of our builds are kicked off with Powershell....
Read more >Grunt tool window | WebStorm Documentation - JetBrains
on the toolbar, choose Sort by from the menu, and then choose Name. By default, a tree shows the tasks in the order...
Read more >A Beginner's Guide To Grunt: Build Tool for JavaScript
The free course about grunt basics and walked through the process of creating a build script for a small web application.
Read more >grunt-sort-json - npm
grunt -sort-json Build Status. A grunt task for alphabetizing JSON files. Community. If you have any problems setting up or using grunt-sort ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In my case it wasn’t the jsminify target. But was the htmlmin target. I changed
collapseBooleanAttributes
to false and it solved the issue for me. Here is the whole configuration of the target:Both solutions worked for me. However I was having a CSS issue as well (see the 2 up arrows on not sorted columns):
Setting the following option fixed the issue: