Moving back to ng-bind-html

This commit is contained in:
Will Marshall
2014-05-28 14:58:53 +10:00
parent c26462db57
commit 0c8ee2488b
2 changed files with 3 additions and 11 deletions

View File

@@ -15,11 +15,3 @@ Darkswarm.directive "ofnModal", ($modal)->
elem.on "click", =>
scope.modalInstance = $modal.open(controller: ctrl, template: contents, scope: scope.$parent)
# TODO THIS IS TERRIBLE PLEASE FIX NG-BIND-HTML
Darkswarm.directive "injectHtml", ->
restrict: 'A'
scope:
injectHtml: "="
link: (scope, elem, attrs, ctrl)->
elem.html(scope.injectHtml)