AnsweredAssumed Answered

How to unregistered the widget in angular 4 app

Question asked by siva.lntgis on May 24, 2018

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

Outcomes