Still getting the hang of angular, so there might be something I'm overlooking. I have a model containing a collection of objects with their own properties, and my goal is to generate a csv value based on the Text
property of each object. I've experimented with using both ng-repeat
and calling a function to achieve this. However, the method that I believed would be the most straightforward is not quite producing the desired result.
{{item.Keywords.map(function (kw) { return kw.Text; }).join(', ')}}
In this scenario, the join
function works perfectly fine (I can see the object
s separated by commas), but when used in conjunction with map
, it fails to interpret it properly and simply displays the original content. Is there a specific technique or workaround when utilizing map
that I may be unaware of?