Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dnauck opened this issue Jul 6, 2015 · 3 comments
Open

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

dnauck opened this issue Jul 6, 2015 · 3 comments

Comments

@dnauck
Copy link
Contributor

dnauck commented Jul 6, 2015

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">
@begriffs
Copy link
Owner

begriffs commented Jul 6, 2015

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

@dnauck
Copy link
Contributor Author

dnauck commented Jul 9, 2015

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

@AmarJagtapDev
Copy link

AmarJagtapDev commented Dec 29, 2016

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));
            }
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants