DEV Community

Discussion on: Storybook Addon AngularJS (1.x)

Collapse
 
titonobre profile image
Tito

Finally v1 🎉

After a few attempts, I think this time I got this right.

With the new decorator withAngularJs, story can be as simple as this:

export default {
  title: "QuoteCard",
  decorators: [withAngularJs("myApp")]
};

export const simpleTemplate = () => `
  <quote-card author="'Me'">
    It works with a simple template!
  </quote-card>
`;

Check the new examples for more advanced uses.

You can even write stories in markdown with the MDX story format supported by Storybook.

New Features

  • New ways to write stories
  • Added support for hooks, thanks @is2ei
  • Added support for multiple modules, thanks @ofhouse

No Breaking Changes

Yes, you can migrate from v0.0.2 to v1.0 with no changes to your stories. 💪

Repository: github.com/titonobre/storybook-add...

Working Examples: storybook-addon-angularjs.now.sh