NativeScript / NativeScript/angular
Support for NativeScript v9 sectioned ListView with Angular templates
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 55
- Forks
- 13
- Avg merge
- 16m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
NativeScript 9 introduced native sectioned ListView support with sticky headers (Announcement). This feature is not yet supported with @nativescript/angular templates.
Describe the solution you'd like
Support for Angular templates in sectioned ListView:
<ListView sectioned="true" stickyHeader="true" [items]="sections">
<ng-template nsTemplateKey="header" let-section>
<Label [text]="section.title"></Label>
</ng-template>
<ng-template nsTemplateKey="item" let-item>
<Label [text]="item.name"></Label>
</ng-template>
</ListView>
Describe alternatives you've considered
Flattening sections into a single array with type discriminator and using itemTemplateSelector, but this loses native sticky header behavior.
Additional context
- @nativescript/core: 9.x
- @nativescript/angular: 20.0.0, 21.0.0-rc0
- iOS / Android
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the @nativescript/angular ListView template integration and compare how nsTemplateKey values are handled for item templates. Verify the sectioned and sticky-header example against NativeScript core 9.x on iOS and Android; done means both Angular templates render with native section headers and sticky-header behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend, mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100