Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Template file:
- <table>
- <thead>
- <tr>
- <th>Name</th>
- <th>Dropdown</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="sp in ServiceProviders">
- <td>{{sp.name}}</td>
- <td>
- <div class="dropdown">
- <button type="button" class="btn btn-default dropdown-toggle" bs-dropdown="dropdown">
- <span class="glyphicon glyphicon-cog"></span>
- </button>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- // Controller
- $scope.ServiceProviders = [{id: 1, name: "Test"}, {id: 2, name "Another"}];
- $scope.dropdown = [{text: "Test link", href: "view/sp/{{sp.id}}"}];
Advertisement
Add Comment
Please, Sign In to add comment