DEMO
Consider the following directive:
angular.module(\'MyApp\').directive(\'maybeLink\', function() {
return {
replace: true,
s
I would use ng-switch.
something like
template: '' +
' ' +
' ' +
'',
or
template: '' +
' ' +
' 0}} href="#" ng-bind-html="text">' +
'',
So this is direction
Plunker