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
Solved! Go to Solution.
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
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
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?
Thanks.
Forrest