Select to view content in your preferred language

How to unregistered the widget in angular 4 app

393
0
05-24-2018 12:33 AM
SivaramKrishnan2
Occasional Contributor

Hello,

Here we are using Angular 4 and ArcGIS JS API 3.22 for our app creation.

In our mobile app, when the user navigates from one screen to another and if they come back to the previous screen we are getting the following error.

and we tried to destroy the widget using domContruct.destroy() and tried to create a new widget dynamically using domContruct.create() but it is throwing the same "already registered error".

and when we tried registry.byId() to get the widget and unregister, it is throwing byId is not a method error.

please help us to resolve the issue.

Thanks and Regards

Siva

0 Kudos
0 Replies