<span>
  <span ng-show="icon && icon.type && icon.src" title="{{icon.title}}" ng-switch="icon.type">
    <i ng-switch-when="icon" class="{{icon.src}} {{icon.class}}"></i>
    <img ng-switch-when="img" ng-src="{{icon.src}}" class="{{icon.class}}">
  </span>
  <span ng-hide="icon && icon.type && icon.src">
    &nbsp;
  </span>
</span>

