I am new to angular js and I want to disable upload button until the file is selected. According to the below code, the button is disabled but it is not getting enabled after the file is selected.
Please help me.
This is my html code:
<input type="file" id="upload" name="file" class="uploadFile" required="required" ng-model="fileToUpload">
<input type="submit" id ="submitFile" value="PostUsingAjax" onClick="uploadFile()"
ng-disabled = "form.$invalid || disabled" ng-click ="disableButton()">