For eg.
<h3>www.domain.com</h3>
should be converted to
<a>www.domain.com</a>
under certain logic
Here's another example which could come in handy if you were to have to toggle between more than just two elements.
js
app.controller('MainCtrl', function($scope) {
$scope.expression = "link";
});
html
<body ng-controller="MainCtrl">
<div ng-switch="expression">
<h3 ng-switch-when="text">www.domain.com</h3>
<a ng-switch-when="link">www.domain.com</a>
</div>
<button ng-click="expression = (expression === 'text' ? 'link' : 'text')">Toggle</button>
</body>