swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Swagger-UI for Angular2

Open siddamreddy opened this issue 9 years ago • 4 comments

I am using swagger-UI.js in angular1 so now I am migrating angular 1 to angular 2? but i couldn't able to find swagger-ui related changes in angular2?

could you guide us.

Regards NAGA

siddamreddy avatar Jan 09 '17 07:01 siddamreddy

I am also facing same issue. any update on this please?

kushwahashiv avatar May 03 '17 23:05 kushwahashiv

Can any one have examples using angular2, please update

siddamreddy avatar Jun 07 '17 09:06 siddamreddy

swagger-ui is not written in angular. There should be no problem integrating the new UI with it.

webron avatar Jun 10 '17 04:06 webron

Hello @webron,

There is an issue integrating swagger-ui into angular4 project. Which is described in https://stackoverflow.com/questions/45624651/how-to-use-swaggerui-in-angular-4.

I am facing the same issue while trying to init SwggerUIBundle inside angular component.

Unhandled promise rejection Error: Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten. Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.) at Function.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.assertZonePatched (zone.js:44) at new NgZone (core.es5.js:3775) at PlatformRef_.webpackJsonp.../../../core/@angular/core.es5.js.PlatformRef_._bootstrapModuleFactoryWithZone (core.es5.js:4492) at core.es5.js:4537 at swagger-ui-bundle.js:67 at swagger-ui-bundle.js:67 at MutationObserver.f (swagger-ui-bundle.js:67) at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391) at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runGuarded (zone.js:154) at MutationObserver.<anonymous> (zone.js:132)

Please let us know if there are any ways to fix this issue.

Thanks.

asakalou avatar Aug 15 '17 12:08 asakalou