Skip to content

Are there any plans to have a directive like ng-include? #2753

@peter-svintsitskyi

Description

@peter-svintsitskyi

I'm looking for a feature that will allow to have dynamic templates for a component.
For example, I'm loading a text by ajax means and displaying it. Then I also want to attach click event handlers to a certain words using directives.
For example I have a parent component that makes an ajax request to a server and a server returns the following text in response:

Foo bar baz <c>foo</c> bar baz

I'd like to render that response as an html and have a directive with the selecor "c" that will handle clicks for the word.

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