Skip to content

Templating fails when using any *ng directives #1655

@brian428

Description

@brian428

I'm submitting a ... (check one with "x")

[ X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
Plunkr to demonstrate the bug with PrimeNG 1.1.1: https://plnkr.co/edit/BQAjYy?p=preview

Current behavior
If *ngIf is used in a <template> inside <p-dataList> (and p-orderList, and probably other components that iterate over a template), the render of the initial data seems correct. However, adding new items to the list causes the template rendering to fail.

Expected behavior
Template should render correctly when *ngIf is used in the template.

Minimal reproduction of the problem with instructions
Plunker at https://plnkr.co/edit/BQAjYy?p=preview reproduces the issue.

  • Angular version: Plunkr uses latest from npm.

  • PrimeNG version: 1.1.1

  • Browser: all

  • Language: all

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions