Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div ng-controller="ctrl">
  <img height="100" ng-src="{{logoUrl}}" />
  <img height="100" ng-src="{{getUrl1()}}" />
</div>
</body>
</html>
 
function ctrl($scope) {
  var myUrl = 'http://www.mytabletbooksqa.com/ProductImages/test2.gif';
  
  $scope.logoUrl = myUrl.replace('test2', 'test1');
  
  $scope.getUrl1 = function() {
    return myUrl.replace('test2', 'test1');
  };
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Dmitry Antonovpro
0viewers