storybook-addon-angular-ivy
Version:
This addon enables Ivy for @storybook/angular and is meant as a preview before it gets integrated into @storybook/angular itself.
22 lines (14 loc) • 670 B
Markdown
# Storybook Addon Angular Ivy
This addon configures [Storybook for Angular](https://storybook.js.org/docs/angular/get-started/introduction) to use the new [Angular Ivy renderer](https://angular.io/guide/ivy) instead of the ViewEngine that Storybook uses by default.
## Installation
This addon installs just like any other Storybook addon:
```sh
npm install --save-dev storybook-addon-angular-ivy
```
Then add it to your `.storybook/main.js` addons field:
```js
module.exports = {
addons: ["storybook-addon-angular-ivy"],
};
```
That's it! The first time you run it on a new project, the addon will run the angular compiler `ngcc` on your `node_modules` folder.