mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore: git add a file
This commit is contained in:
9
js/ext/angular/src/directive/ionicBindHtml.js
vendored
Normal file
9
js/ext/angular/src/directive/ionicBindHtml.js
vendored
Normal file
@@ -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 || '');
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user