ArcGIS JS API 4.0 ViewModels with Angular 2 Live demo I'm still learning Angular 2, so I'm not sure if this is clean, but it works. I had issues trying to use RxJS to subscribe to changes in my service.