Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

ng-bind-html does not process Angular directives in bound HTML #742

@zoechi

Description

@zoechi

Because ng-bind-html didn't support a custom NodeValidator I built my own bind-html directive but now injecting a NodeValidator is supported but
the bound HTML is not processed by Angular (any components, directives, ... are ignored)

In my custom bind-html I have the following code in set value after setInnerHtml to achieve this:

if(value != null) {
  _compiler(_element.childNodes, _directiveMap)(_injector, _element.childNodes);
}

Is this intentional that ng-bind-html doesn't do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions