I'm trying to generate dynamic links from a JSON collection via KnockoutJS foreach binding.
Example:
<div class="profile-links">
<ul data-bind="foreach: Types">
<li>
<a data-bind="attr: { href: 'https://myapp.com/?ref=' + text:TypeId }" />
</li>
</ul>
</div>
This generates the following exception from KnockoutJS
Uncaught Error: Unable to parse bindings. Message: SyntaxError: Unexpected token :;
What's the proper way to handle this?