I am calling a preview method as follows
<span class="error-message">{{FilesNotSelected}}</span>
<input type="file" onchange="angular.element(this).scope().previewFile('firstLevel')">
In my script I am changing a scope variable as follows
$scope.previewFile = function (uploadType) {
$scope.FilesNotSelected = "Selected";
}
I am unable to get the changed value to be displayed in the UI. Can someone please help me find the issues. It seems scope get changed.