This page illustrates features and use of AngularJS library ng-daia (version {{version}}) to query and display DAIA. See the API reference for details.
<div class="daia-response" daia-api="{{myAPI}}" daia-id="{{myID}}" daia-loading="daiaLoading"> <i ng-show="daiaLoading" class="glyphicon glyphicon-refresh"> </div>
ng-daia includes
a filter,
a template (template/daia-simple.html
), and
a directive to
handle
DAIA Simple format.
<div daia-api="{{myAPI}}" daia-id="{{myID}}" daia-filter="daiaSimple"></div>
<div daia-simple="daiaResponse"></div>
{{daiaResponse | daiaSimple | json}}
<div ng-repeat="doc in daiaResponse.document"> <div ng-repeat="item in doc.item"> {{item.label}}: <span daia-simple="item"></span> <div> </div>
{{item.label}}
{{daiaResponse | json}}