michaelbromley / michaelbromley/angularUtils

The pagination breaks when trying to add the pagination-id

Open
#453 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2k
Forks
842
PR merge metrics
No merged PRs in 30d

Description

Hello,

I was trying to incorporate the pagination-id since I have 2 paginations in the same page. But everytime I include the ID, I get the Syntax Error issue.
When no pagination-id is used, everything works well with only one of the repeats that need the pagination.
I am using the latest version that just downloaded from gtihub

Error: [$parse:syntax] Syntax Error: Token ':' is an unexpected token at column 160 of the expression [paginated = (filteredCmpClient = (taskLevelList | filter: searchCmpUser | filter: searchALL | orderBy:propertyName:reverse) | itemsPerPage: pageSize.value.id) : 'taskLevel'] starting at [: 'taskLevel'].
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reported AngularJS expression and the pagination-id entry point in the pagination component. Reproduce the parse error using two paginations and compare it with the working expression that omits pagination-id. Done means pagination-id accepts the intended value without a syntax error and both paginations continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.