New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 2 support #269
Comments
We've made our core UI into a separate app. We are planning to use it for NG2 directly. See: https://github.com/kadirahq/storybook-ui |
Cool. Looking forward to it! :) |
Hey, @arunoda, so what's gonna be the approach for this one? |
Angular 2 APIs have become stable with the release of RC5. There won't be any breaking changes now. So its a good time to start developing it. cc: @arunoda @mnmtanish |
@arunoda: I'm inclined to think this is low on the roadmap, but so in the Angular case, in this split the idea would be for a theoretical |
@tycho01 You are right. It's kind a low on our priority. |
@alterx: Pointers I got: |
Checkout this - https://twitter.com/amcdnl/status/804776546246520832 |
@tycho01, I checked the source and they have a completely separate react component that's basically a glorified iframe (https://github.com/storybooks/react-storybook/blob/master/src/client/manager/preview.js). We should be able to load the ng2 stories in that preview iframe.
After this, @arunoda , please let me know if I'm missing something |
@amcdnl, that looks promising. Would you mind giving me a quick overview of how it works? (nothing fancy, just the big picture) |
@amcdnl: thanks for linking, will check it out. |
@MikeRyan52 ^^ |
@alterx Yep. You are 100% correct. Possible imported from |
@arunoda Do you have a url for the angular-storybook you mentioned, google is coming up dry. |
There is also this now - http://www.angularplayground.it/ |
It's on the roadmap now: |
So Storybook for Vue is going to be released soon 🎉 This adds a pretty good example of how a version for NG2 could be done. |
I could take a look, do you have a repo url handy, @ndelangen ? |
You're looking at it 😄 Storybook is a monorepo, we do have packages in here, published to npm separately. Currently the vue app isn't in master yet, so here are 3 links to get to going: The render.js is where most of the Vue specific code is and on the server part there's a webpack config that's different. It's OK to duplicate a lot of code at first! We will address that later. After we find what is really common and what isn't. |
Just to get started, I'd say
@shilman Is our release master chef 👨🍳 |
You can join us on slack to get a slightly faster chat experience then github 💬 |
Perfect, @ndelangen! |
@karlos1337 , take a look at this issue - #2616. |
Released in 3.3! 🎉 Closing this issue, and if you're having problems with storybook for angular, please file a separate issue. Thanks! |
I realize Angular 2 support was on the roadmap, and I'm pretty happy about that.
I wanted to share my related attempt at adapting the repo to that end, and didn't find a relevant thread here yet, so figured I might as well make one.
I hadn't managed to put a PoC together yet, but perhaps the Angular bits from my first commit here may help provide some inspiration. I realize it's forking an outdated version of this repo too, but I guess the concepts should still apply.
The text was updated successfully, but these errors were encountered: