I have the following array:
"cast": [
{
"name": "James Stewart"
},
{
"name": "Kim Novak"
},
{
"name": "Barbara Bel Geddes"
},
{
"name": "Tom Helmore"
}
]
What is the neat ability in AngularJS to format it as:
James Stewart, Kim Novak, Barbara Bel Geddes, Tom Helmore
Is there a way to use filteror formatterso that I can neatly do this in a template, for example:
<font class="authors-string">{{ object.cast | filter/formatter/? }}</font>
I think that writing logic for this simple analysis in the controller will clutter the body of the controller.
Thank you for your interest.
source
share