Async pipe does not fill object data into template

后端 未结 5 1252
遇见更好的自我
遇见更好的自我 2021-02-01 17:41

Can anyone help me see if there is a syntax error here in my template? It does not give error, but does not fill in data into the template either:

5条回答
  •  别那么骄傲
    2021-02-01 18:26

    I am just adding a precision on how to use the smart / dumb component approach in the case you need to use the async pipe and a bracket syntax.

    That combine a trick found here.

    < ui-gallery-image([image]="(imagesFB | async) ? (imagesFB | async)[0] : null") >

    I've spend hours to find. Hope this help. More info on this blog post.

提交回复
热议问题