镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open

Description

@plasensa

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

Activity

  1. michaelbromley commented on Jun 20, 2017

    @michaelbromley
    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.

  2. plasensa commented on Jun 20, 2017

    @plasensa
    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>
    
  3. michaelbromley commented on Jun 20, 2017

    @michaelbromley
    Owner

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

  4. plasensa commented on Jun 20, 2017

    @plasensa
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions