Is it possible to bind ng-model for input type image, something like this:
<input ng-model="imageName" type="image" ng-src="{{imageSrc}}">
I didn't find info in documentation, so I have tried, but without success.
Is it possible to bind ng-model for input type image, something like this:
<input ng-model="imageName" type="image" ng-src="{{imageSrc}}">
I didn't find info in documentation, so I have tried, but without success.
Yes, We can create.
I have created a fiddle for Demo, Hope it will resolve your problem
HTML Markup:
<div ng-app>
<div ng-controller="test">
<input ng-model="imageName" type="image" ng-src="{{imageUrl}}" />
</div>
</div>
JavaScript Code:
function test($scope){
$scope.imageName = 'logo';
$scope.imageUrl='https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png';
}