redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Angular 5 rerender issue

Open parajanoff opened this issue 8 years ago • 4 comments

Hi,

Is Angular 5 properly supported? I did the following:

  1. Installed redoc npm package.
  2. Imported RedocModule.
  3. Created a new Angular component and created html like this:

<redoc spec-url='SCHEMA_URL'></redoc>

During the first redirection to the page Redoc is properly initialized and rendered.

ISSUE: When revisiting the page, Redoc is partially initialized and navigation pane is greyed out with no errors. See attached screenshot. screen shot 2018-02-28 at 6 30 12 pm

parajanoff avatar Feb 28 '18 23:02 parajanoff

@parajanoff angular version is getting deprecated. However, I will try to fix bugs in Angular version in 1.x.x.

Could you set up a repo with a minimal reproducible sample? That would help a lot! Thanks!

RomanHotsiy avatar Mar 05 '18 08:03 RomanHotsiy

Any news on this ? I'm unable to integrate it into angular project 😢

guillaume-skwid avatar Apr 16 '18 14:04 guillaume-skwid

@RomanGotsiy Hi Roman, thanks for your response and sorry for my late one... been busy.

I'm not able to setup a repo with a minimal reproducible sample at the moment. We got a workaround with iframe + JS initialization which works OK for now, but eventually, this should be changed to a proper way.

I hope community will help with the sample sooner than I will be able to.

parajanoff avatar Apr 19 '18 17:04 parajanoff

Thanks, @parajanoff,

Great you found a workaround!

ReDoc has been rewritten to React since version 2.0.0-alpha.x and 1.x version will receive only critical bug fixes.

RomanHotsiy avatar Jun 01 '18 15:06 RomanHotsiy