angular-paginate-anything icon indicating copy to clipboard operation
angular-paginate-anything copied to clipboard

Error: [$parse:ueoe] Unexpected end of expression: gotoPage(page

Open dnauck opened this issue 9 years ago • 3 comments

I have the following error now with Angular 1.3.15 and 1.4.1, any idea what is wrong?

Error: [$parse:ueoe] Unexpected end of expression: gotoPage(page
http://errors.angularjs.org/1.4.1/$parse/ueoe?p0=gotoPage(page
    at REGEX_STRING_REGEXP (http://localhost:53875/bower_components/angular/angular.js:68:12)
    at Object.AST.consume (http://localhost:53875/bower_components/angular/angular.js:12872:13)
    at Object.AST.primary (http://localhost:53875/bower_components/angular/angular.js:12775:14)
    at Object.AST.unary (http://localhost:53875/bower_components/angular/angular.js:12748:19)
    at Object.AST.multiplicative (http://localhost:53875/bower_components/angular/angular.js:12735:21)
    at Object.AST.additive (http://localhost:53875/bower_components/angular/angular.js:12726:21)
    at Object.AST.relational (http://localhost:53875/bower_components/angular/angular.js:12717:21)
    at Object.AST.equality (http://localhost:53875/bower_components/angular/angular.js:12708:21)
    at Object.AST.logicalAND (http://localhost:53875/bower_components/angular/angular.js:12700:21)
    at Object.AST.logicalOR (http://localhost:53875/bower_components/angular/angular.js:12692:21) <a href="" ng-click="gotoPage(page-1)">(anonymous function) @ angular.js:12314$get @ angular.js:9101invokeLinkFn @ angular.js:8644nodeLinkFn @ angular.js:8142compositeLinkFn @ angular.js:7534nodeLinkFn @ angular.js:8137compositeLinkFn @ angular.js:7534nodeLinkFn @ angular.js:8137compositeLinkFn @ angular.js:7534publicLinkFn @ angular.js:7409$get.boundTranscludeFn @ angular.js:7553controllersBoundTransclude @ angular.js:8169ngIfWatchAction @ angular.js:23752scopePrototype.$watch.arguments.(anonymous function) @ hint.js:1874$get.Scope.$digest @ angular.js:15667scopePrototype.$digest @ hint.js:1893$get.Scope.$apply @ angular.js:15935scopePrototype.$apply @ hint.js:1956done @ angular.js:10356completeRequest @ angular.js:10528requestLoaded @ angular.js:10469
angular.js:12314 Error: [$parse:ueoe] Unexpected end of expression: gotoPage(page
http://errors.angularjs.org/1.4.1/$parse/ueoe?p0=gotoPage(page
    at REGEX_STRING_REGEXP (http://localhost:53875/bower_components/angular/angular.js:68:12)
    at Object.AST.consume (http://localhost:53875/bower_components/angular/angular.js:12872:13)
    at Object.AST.primary (http://localhost:53875/bower_components/angular/angular.js:12775:14)
    at Object.AST.unary (http://localhost:53875/bower_components/angular/angular.js:12748:19)
    at Object.AST.multiplicative (http://localhost:53875/bower_components/angular/angular.js:12735:21)
    at Object.AST.additive (http://localhost:53875/bower_components/angular/angular.js:12726:21)
    at Object.AST.relational (http://localhost:53875/bower_components/angular/angular.js:12717:21)
    at Object.AST.equality (http://localhost:53875/bower_components/angular/angular.js:12708:21)
    at Object.AST.logicalAND (http://localhost:53875/bower_components/angular/angular.js:12700:21)
    at Object.AST.logicalOR (http://localhost:53875/bower_components/angular/angular.js:12692:21) <a href="" ng-click="gotoPage(page+1)">(anonymous function) @ angular.js:12314$get @ angular.js:9101invokeLinkFn @ angular.js:8644nodeLinkFn @ angular.js:8142compositeLinkFn @ angular.js:7534nodeLinkFn @ angular.js:8137compositeLinkFn @ angular.js:7534nodeLinkFn @ angular.js:8137compositeLinkFn @ angular.js:7534publicLinkFn @ angular.js:7409$get.boundTranscludeFn @ angular.js:7553controllersBoundTransclude @ angular.js:8169ngIfWatchAction @ angular.js:23752scopePrototype.$watch.arguments.(anonymous function) @ hint.js:1874$get.Scope.$digest @ angular.js:15667scopePrototype.$digest @ hint.js:1893$get.Scope.$apply @ angular.js:15935scopePrototype.$apply @ hint.js:1956done @ angular.js:10356completeRequest @ angular.js:10528requestLoaded @ angular.js:10469
angular.js:12314 Error: [$parse:ueoe] Unexpected end of expression: gotoPage(numPages
http://errors.angularjs.org/1.4.1/$parse/ueoe?p0=gotoPage(numPages
    at REGEX_STRING_REGEXP (http://localhost:53875/bower_components/angular/angular.js:68:12)
    at Object.AST.consume (http://localhost:53875/bower_components/angular/angular.js:12872:13)
    at Object.AST.primary (http://localhost:53875/bower_components/angular/angular.js:12775:14)
    at Object.AST.unary (http://localhost:53875/bower_components/angular/angular.js:12748:19)
    at Object.AST.multiplicative (http://localhost:53875/bower_components/angular/angular.js:12735:21)
    at Object.AST.additive (http://localhost:53875/bower_components/angular/angular.js:12726:21)
    at Object.AST.relational (http://localhost:53875/bower_components/angular/angular.js:12717:21)
    at Object.AST.equality (http://localhost:53875/bower_components/angular/angular.js:12708:21)
    at Object.AST.logicalAND (http://localhost:53875/bower_components/angular/angular.js:12700:21)
    at Object.AST.logicalOR (http://localhost:53875/bower_components/angular/angular.js:12692:21) <a href="" ng-click="gotoPage(numPages-1)" class="ng-binding">

dnauck avatar Jul 06 '15 12:07 dnauck

It looks like it is originating in the ng-clicks inside src/paginate-anything.html.

Locally I am able to run the test suite with Angular 1.4.1 and everything passes. It's not immediately jumping out at me what is going on here. Perhaps try running the html file through a strict linter like https://www.npmjs.com/package/grunt-html-angular-validate

begriffs avatar Jul 06 '15 15:07 begriffs

Looks like this issue only occurs in Chrome. I'm using 43.0.2357.132 m (64 bit).

dnauck avatar Jul 09 '15 11:07 dnauck

hide this code in ng-grid.js - it add extra column when group is add.
/moved out of above loops due to if no data initially, but has initial grouping, columns won't be added/ if(cols.length > 0) { for (var z = 0; z < groups.length; z++) { if (!cols[z].isAggCol && z <= maxDepth) { cols.splice(0, 0, new ngColumn({ colDef: { field: '', width: 25, sortable: false, resizable: false, headerCellTemplate: '

', pinned: grid.config.pinSelectionCheckbox
                    },
                    enablePinning: grid.config.enablePinning,
                    isAggCol: true,
                    headerRowHeight: grid.config.headerRowHeight
                    
                }, $scope, grid, domUtilityService, $templateCache, $utils));
            }
        }
    }
  

AmarJagtapDev avatar Dec 29 '16 13:12 AmarJagtapDev