returning and calling an object in a list (ANGULAR.js)

前端 未结 3 1459
遥遥无期
遥遥无期 2021-01-22 16:22

in this example I\'m returning a string depending on whether a text field is a value for \"beast\" and/or \"color\". but this is only returning a string. I would return in two c

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-22 16:59

    I am not sure what you are trying to get. Have a look at this plunk. Is this what you wanted ?

    It works if you push the whole item to the results list like:

    results.push(item);
    

    http://plnkr.co/edit/xW9hqC1z1rKddRWaP2g6?p=preview

提交回复
热议问题