Optimize svg template (href attribute)

stable
Daniel García 2018-11-27 13:16:45 +01:00 committed by Alex Hermida
parent 66b4e4971f
commit ff1e7d9fac
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ module.directive("tgLightboxClose", [LightboxClose])
Svg = () -> Svg = () ->
template = """ template = """
<svg class="{{ 'icon ' + svgIcon }}" style="fill: {{ svgFill }}"> <svg class="{{ 'icon ' + svgIcon }}" style="fill: {{ svgFill }}">
<use xlink:href="" ng-attr-xlink:href="{{ '#' + svgIcon }}"> <use xlink:href="" ng-attr-xlink:href="{{ '#' + svgIcon }}" href="{{ '#' + svgIcon }}">
<title ng-if="svgTitle">{{svgTitle}}</title> <title ng-if="svgTitle">{{svgTitle}}</title>
<title ng-if="svgTitleTranslate">{{svgTitleTranslate | translate: svgTitleTranslateValues}}</title> <title ng-if="svgTitleTranslate">{{svgTitleTranslate | translate: svgTitleTranslateValues}}</title>
</use> </use>