Thanks for your solution. But while am trying to set the value from the constructor or the NgOninit. the value cannot be bind. please help to resolve this issue. Also how to set a value pro-grammatically in angular.
https://play.nativescript.org/?template=play-ng&id=L1ulE5&v=2