Is it possible to change binded property inside activityBackPressedEvent?


#1

I wrote something like this with angular/nativescript

After click number increased.


and event:

I want to use this event inside activityBackPressedEvent like this:

After click on back button on devie Value changed

but nothing happened in view.

Is there any way to access and change string interpolation or other binding inside android lifecycle? Or How can change view parameters with activityBackPressedEvent ?


#2

The android event happens outside angular.

Look into NgZone or ChangeDetectionReference in the angular.io documentation


#3

Use ngZone