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

The pagination breaks when trying to add the pagination-id #453

Open
plasensa opened this issue Jun 20, 2017 · 4 comments
Open

The pagination breaks when trying to add the pagination-id #453

plasensa opened this issue Jun 20, 2017 · 4 comments

Comments

@plasensa
Copy link

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'].

@michaelbromley
Copy link
Owner

Hi,

It looks like the closing parenthesis is in the wrong place to me:

 itemsPerPage: pageSize.value.id) : 'taskLevel'
                                ^
                                this

Try moving it to after the "taskLevel" id string.

@plasensa
Copy link
Author

Actually, that error is coming from this code where I replicated the example available in the repository, where "current-page" and "pagination-id" are outside the parenthesis

        <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)" template-url="./views/general/dirPagination.tpl.html" pagination-id="taskLevel"></dir-pagination-controls>

@michaelbromley
Copy link
Owner

Ok. Does that mean this issue is resolved? If so you can close it.

@plasensa
Copy link
Author

plasensa commented Jun 20, 2017

Hi MIchael,

thank you for for your quick follow-ups. I apologize for not being too clear. I made a wrong assumption. Let me try to elaborate a bit more.

This is a brief description of the code used
Paginator_error.txt

I guess something does the directive with what I wrote, because I do not know where those : are coming from

I hope this clears out the misunderstanding.

Thanks again

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

2 participants