Skip to content

Commit

Permalink
chore: git add a file
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Feb 6, 2014
1 parent e755623 commit d15905f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/ext/angular/src/directive/ionicBindHtml.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module('ionic.ui.bindHtml', [])
.directive('bindHtmlUnsafe', function () {
return function (scope, element, attr) {
element.addClass('ng-binding').data('$binding', attr.bindHtmlUnsafe);
scope.$watch(attr.bindHtmlUnsafe, function(value) {
element.html(value || '');
});
};
});

0 comments on commit d15905f

Please sign in to comment.