Please provide a example on how to create a custom widget using ViewModel in Angular.
For example: create a custom CoordinateConversion Widget using CoordinateConversionViewModel in Angular.
Thanks.
Forrest
Hi @ForrestLin, we deprecated the pattern of extending the viewModel for widgets. We now recommend using the JS framework's component capabilities. We don't have an Angular example, but here a React example: https://github.com/Esri/jsapi-resources/tree/main/core-samples/jsapi-custom-ui.
Reference: https://developers.arcgis.com/javascript/latest/custom-ui/#custom-framework-components
@AndyGup
Got it.
It's much convenient to create the UI Widget using Angular Component and useing viewModels as business logic.
By the way, is it possible to do two-way binding in calcite-component-angular?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.