Angular filter a object by its properties

后端 未结 6 2039
感情败类
感情败类 2020-11-30 04:47

I have an object with a series of object properties that is in the following similar structure (which is the way the data is coming back from a service):

{
          


        
6条回答
  •  无人及你
    2020-11-30 05:15

    No need of all that. This solution works fine without having to convert or creating your own filter:

     {{myModel.userSelectedHour["Start"]}}
    

    Therefore, object.["property"] instead of object.property.

提交回复
热议问题