Page History
...
Table of Contents |
---|
Installing and usage
You can add the libraries to your SPA project either by installing them using the npm install command,
Mgnl mini code snippet | ||
---|---|---|
| ||
npm install --save @magnolia/template-annotations |
or by including them as project dependencies.
The helpers have the following npm package names:
- Angular renderer:
@robsis/react-renderer
- React renderer:
@robsis/angular-renderer
- Template Annotations:
@robsis/template-annotations
You can add these libraries to your SPA project by installing them as project dependencies, for example, through the npm
install
command:
Mgnl mini code snippet | ||
---|---|---|
| ||
npm install @magnolia/template-annotations |
For more information on how to install and use these helper libraries, click the following links:
...
Front-end helpers in Magnolia example SPA pages
You don't need have to include these the helpers manually if you would like to try out our example Angular and React SPA demo pages:
...
Each of these two example SPA pages already include the required dependencies to the helper libraries.