Swagger-UI for Angular2
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
I am also facing same issue. any update on this please?
Can any one have examples using angular2, please update
swagger-ui is not written in angular. There should be no problem integrating the new UI with it.
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.