nativescript-community / nativescript-community/ui-pager

I'm getting error when i open pager component in my nativescript angular project

Open
#49 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
21
Forks
14
PR merge metrics
No merged PRs in 30d

Description

I am getting below error
ERROR TypeError: Cannot set properties of undefined (setting 'selectedIndex')
I also created a new test project - just added plugin ns plugin add @nativescript-community/ui-pager and version is 14.1.14.
I am getting same error in new project also.

https://github.com/nativescript-community/ui-pager/blob/master/demo-snippets/ng/basic-pager/basic-pager.component.html I am using basic-pager to test .... Actually I have created a new nativescript angular project
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the demo-snippets/ng/basic-pager/basic-pager.component.html example and reproduce the selectedIndex error in a new NativeScript Angular project using @nativescript-community/ui-pager 14.1.14. Compare the demo configuration with the failing project and determine which setup causes the undefined value; done means the basic pager opens without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
mobile
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.