Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49362

Issue with segments that use ngFor. EDIT: Found the solution

$
0
0

@cfarren wrote:

Hey all,

I am trying to dynamically create a row of segments using ngFor. I have a hard wired segment called all with a value that equals an empty string. When I use ngFor to create the rest of the segment buttons I am only able to select the All and the first segment. The other ones do not work, I select them and they do not select.

See plunker below.

EDIT: It appears that calling this.segment.ngAfterContentInit(); fixes the issue. It’s not very nice though. Is this going to be fixed in a later release?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49362

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>