I need to make ng-repeat and switch tags depending on object attributes. Only table elements, so I can't put <div ng-repeat> between <tr> and <td>. Like this:
<tr>
<td ng-repeat="value in param.values" ng-switch on="value.type">
<a ng-switch-when="text">{{value.name}}</a>
<input ng-switch-when="input" type="text" placeholder="{{value.name}}">
<a ng-switch-when="relocate_here" ng-click="relocate(value.urlTo)">{{value.name}}</a>
</td>
</tr>
but without <a> tag. Something like that
<tr>
<td ng-repeat="value in param.values" ng-switch on="value.type">
{{value.name}}//if value=="text"
<input ng-switch-when="input" type="text" placeholder="{{value.name}}">//if value=="input"
{{value.name}}//like the first one if value=="relocate_here" but <td> must have directive ng-click="relocate(value.urlTo)"
</td>
</tr>
Please, give me some advice about that and sorry for my english.