How can I use NgFor without creating arrays to generate matrix UI pattern

后端 未结 5 1367
无人及你
无人及你 2021-01-12 16:36

I would like to implement UI matrix pattern, which should generate dynamically. By receiving input parameter it should decide what would be UI matrix pattern dimensions: For

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-12 17:18

    In my case i wanted to make a price rating dynamic something like this

    'Price Rating : $$$' or 'Price Rating : $$' without making an array to repeat this "$"

    so i knew that my rating is 5 at most and this working well for me .

       
          $
       
    

    priceRating maybe from 0 to 5

    hope that help

提交回复
热议问题