Angular application
How to embed Comentario comments into a single-page Angular app
WARNING:
This feature is in the preview status. The provided API can (and probably will) change in future releases.
Angular is one of the most popular frameworks for building rich single-page web applications.
We provide an Angular library called ngx-comentario, which allows for an easy integration with an existing Comentario backend.
- Navigate to your project, to the directory that contains
package.json
. - Add the library as a runtime dependency:
npm install --save ngx-comentario
- Insert the component into the required template(s) where you want comments to appear, with the correct Comentario backend URL:
...
<ngx-comentario-comments comentarioUrl="https://comentario.example.com"></ngx-comentario-comments>
...
- Consult the library documentation to learn how to customise the rendered comments.