ngx-prismic
This project is intended to provide easier integration of prismic.io into Angular Projects.
Work in Progress... More featues and docs are coming in the future.
How to use
This module is built on top of prismic-javascript and prismic-dom as well as angular.
In lib/renderer/
you find helper-functions and models around prismic-dom
to generate HTML from
the CMS-data. It is intended to grow if a common functionality is needed but not provided by prismic-dom
itself.
In lib/universal
you find helper methods used in the context of prerendering pages with
Angular Universal.
Finally, in lib/prismic-client
you find a service built with Angular's HttpClient
to query the Prismic API.
Dependency Management
The project in ./lib
has several peer-dependencies. Those are installed
as dev-dependencies in the main project to have them available during
development, but to not have them included in the final package.json
.