I have table with ng-repeat in html here is of this table
<tbody>
<tr dir-paginate="x in serverData | filter:filterData | filter:filterData | itemsPerPage: itemPerPageValue | orderBy : orderBy">
<td>{{ x.name }}</td>
<td>{{ x.description }}</td>
<td>{{ x.priority }}</td>
<td ng-show="btnTGDetails">
<a class="detailButton" href="#" ng-click="loadPage('terminalList', 'page', x.id, x.name);"></a>
</td>
<td> <input name="addNewTerminalButton" value="Configure" type="{{ (checkTerminalGroup(x))? ('submit') : ('') }}" ng-click=""/></td>
</tr>
</tbody>
i want to create submit button if my checkTerminalGroup(x) angular function returns true and nothing if it returns false . I wrote this coke which is already shown before , but if my function returns false it appears like textbox, but i want nothing i need coke like
<td>{{ (checkTerminalGroup(x))? ('<input name="addNewTerminalButton" value="Configure" type="submit" ng-click=""/>') : ('') }}</td>
but it is not working . Can you tell me how can i do it ?
typeattribute?