1

How to display the collection returned by get as comma separated values?

<div ng-repeat="val in cc.getRepeatingAttributeValues(col.name)">
    <span class="value">{{val}}</span>                                                  
</div>  

getRepeatingAttributesValues() returns ["Consumers","Contributors"] I want it to be displayed as

Consumer,Contributors

1 Answer 1

3

You can do it with Array.prototype.join() :

{{ cc.getRepeatingAttributeValues(col.name).join() }}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.