【问题标题】:AngularJS html form binding?AngularJS html表单绑定?
【发布时间】:2013-12-27 09:09:40
【问题描述】:

我需要在 ng-bind-html 中使用表单标签吗? ng-bind-html 不绑定表单标签(表单,输入)。请提供绑定表单标签的解决方案。

【问题讨论】:

  • 请提供绑定表单标签的尝试。

标签: angularjs ng-bind-html


【解决方案1】:

ng-bind-html 不适用于 Form 元素。但是,您可以通过创建单独的指令来编译给定的 HTML 或使用 $templateCache 来实现它。

http://plnkr.co/edit/UbEUmJ?p=preview

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-01
    • 2013-02-12
    • 1970-01-01
    • 1970-01-01
    • 2014-10-22
    • 2015-08-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多