I've one global variable called rowTag as array of Tag[] entity in main.ts file.
I've one angular controller called TagMeController.ts file
Here is a constructor of TagMeController
constructor($scope, $rootScope) {
$scope.CloseMe = this.CloseMe;
$scope.rowTags = rowTag;//rowTag global variable
$scope.colTags = colTag;//colTag global variable
$scope.UpdateMe = this.UpdateMe;
}
So, when I update rowTag object from the same controller, it update respective element on UI but when I update same object from some another .ts(main.ts) file things are not being reflected.
Any idea on how to make that variable observable ?