Minor fix on tg-bind-html directive.
parent
b315dc2f71
commit
3a03eca67d
|
@ -60,7 +60,7 @@ BindOnceTitleDirective = ->
|
|||
BindHtmlDirective = ->
|
||||
link = ($scope, $el, $attrs) ->
|
||||
$scope.$watch $attrs.tgBindHtml, (val) ->
|
||||
$el.html(val) if val
|
||||
$el.html(val) if val?
|
||||
|
||||
return {link:link}
|
||||
|
||||
|
|
Loading…
Reference in New Issue