This documentation site is about the unstable (upcoming) Comentario version.  Switch to the stable version »

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.

  1. Navigate to your project, to the directory that contains package.json.
  2. Add the library as a runtime dependency:
npm install --save ngx-comentario
  1. 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>
...
  1. Consult the library documentation to learn how to customise the rendered comments.