Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/ng-template" id="json-template">
- <table cellpadding="0" cellspacing="0" border="0">
- <thead>
- <tr>
- <th>Name</th>
- <th>Type</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody ng-repeat="( key, item ) in items">
- <tr>
- <td>{{key}}</td>
- <td>{{item.type}}</td>
- <td>{{item.desc}}</td>
- </tr>
- <tr ng-if="item.contents">
- <td></td>
- <td colspan="2" ng-include="'json-template'" ng-init="items = item.contents"></td>
- </tr>
- </tbody>
- </table>
- </script>
- <h4>
- <span>body</span>
- </h4>
- <div ng-include="'json-template'" ng-init="items = docs.body"></div>
- <h4>
- <span>params</span>
- </h4>
- <div ng-include="'json-template'" ng-init="items = docs.params"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement