1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-08 11:11:53 +08:00

10 Commits

Author SHA1 Message Date
Dan Green
597387c838 () Add forceReRender support for Angular and Vue 2017-12-27 10:28:53 -05:00
Carlos Vega
8137d67dfa Debouncing render calls
- Angular's bootstrapping process is async and sometimes storybook triggers two re renders. In these cases, we reach an inconsistent state in which we can't properly dispose the old view and listeners get duplicated. With this debounce function we make sure we're accounting for those times.
2017-09-13 18:35:08 -06:00
Norbert de Langen
6695d953a6 CLEANUP && FIX unit test 2017-09-12 23:02:52 +02:00
Carlos Vega
cad98bbd69 Merge branch '269-angular-support' of github.com:storybooks/storybook into 269-angular-support 2017-09-12 13:00:16 -06:00
Carlos Vega
45fa5c14fd Knobs addon and Angular app refactor
- Knobs addon now works (it had a bug in which the knobs would get cleaned *after* the new story was loaded.
- No longer using decarator/classes for dynamic component creation, this will allow us to "inherit" from the components we get from the user.

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-09-06 10:25:56 -06:00
Carlos Vega
1f1688158e Cleaning up angular app on each story load
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-31 09:06:50 -06:00
Carlos Vega
f9114ad5be Experimenting with knobs addon.
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-30 14:15:33 -06:00
Carlos Vega
fe1abbc8c6 Adding else clausle for stories not sent by the knobs add-on
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
ede5c0e110 Laying the foundation to fix the knobs add-on for angular
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
99435cfcf5 Angular (2+) support ()
This is the first attempt at adding support for Angular based, mostly, on the vue changes.

What works:
- Added angular sample code to the `examples` folder
- Rendering stories and creating stories out of existing angular components
- For the time being, this only supports one-page angular components

What's missing:
- Addons support
- Support for components that have a separate template

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:16:45 +02:00