I have a tag with the following things:
<img src="https://abc.com/abc.png" height="300" width="300">
I'm calling a REST API. After calling REST API, I get the values of src, height and width. How can I pass from controller to view in angularjs?
Yes.
To controll the src you need to use ngSrc directive:
<img ng-src="http://www.gravatar.com/avatar/{{hash}}"/>
To controll the style use ngStyle directive:
$scope.myStyle = {"width":"500px", "height":"500px"};
<img ng-style="myStyle"/>