


<api-annotation-document>
An element to render RAML annotations based on AMF data model.
<api-annotation-document></api-annotation-document>
API components
This components is a part of API components ecosystem
Usage
Installation
npm install --save @api-components/api-annotation-document
In an html file
<html>
<head>
<script type="module">
import '@api-components/api-annotation-document/api-annotation-document.js';
</script>
</head>
<body>
<api-annotation-document></api-annotation-document>
</body>
</html>
In a Polymer 3 element
import {PolymerElement, html} from '@polymer/polymer';
import '@api-components/api-annotation-document/api-annotation-document.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<api-annotation-document></api-annotation-document>
`;
}
}
customElements.define('sample-element', SampleElement);
Installation
git clone https://github.com/api-components/api-annotation-document
cd api-url-editor
npm install
npm install -g polymer-cli
Running the demo locally
polymer serve --npm
open http://127.0.0.1:<port>/demo/
Running the tests
polymer test --npm