Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
127 views
in Technique[技术] by (71.8m points)

html - Why animation does not work when using the ngFor directive?

There are two pieces of code

  1. <app-card [model] = "models [0]"> </app-card> When rendering and clicking on the button, additional content opens. Before click After click

  2. <app-card * ngFor = "let model of models" [model] = "model"> </app-card> Using ngFor, the button does nothing, while the method that handles the event is triggered. image

How to make cards work correctly with ngFor?

question from:https://stackoverflow.com/questions/65940405/why-animation-does-not-work-when-using-the-ngfor-directive

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...