I'm trying to disable a div after clicking the button using angularjs.I've tried using ng-disabled attribute in my div.But I'm unable to do this.Can anyone please help me out regarding this issue ...
My html code:
<button style="margin-left: 22px; margin-top: 16px; background-color: #73AD21" ng-click="getHome()">Home</button>
<div style="margin-top: 15px; display: inline-block"
ng-repeat="imageSource in imageSources">
<img width=40 height=50 style="margin-left: 12px;"
ng-src="{{imageSource}}" /> <br> <span
style="margin-left: 12px;">{{getFilenameFromPath(imageSource)}}</span>
</div>
My js code:
$scope.imageSources = [];
$scope.imageSources.push('images/Open.png');
$scope.imageSources.push('images/New.jpg');
$scope.imageSources.push('images/Save.png');
$scope.getFilenameFromPath = function(filename) {
return filename.split("/")[1].split(".")[0];
}
$scope.getHome = function() {
window.location = "./Home.html";
}