Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

wrap() function not working properly when jquery is added #7115

Closed
@mitalpritmani

Description

@mitalpritmani

I have created an angular directive which wraps my input textbox with a div tag. In this div tag, there is a model which shows the value as it's entered in the textbox.

I have used wrap() function on element to wrap the element (here input textbox) with the new div tag. Now the problem is, the input textbox is wrapped correctly but the value is not shown in div tag, instead it shows, {{ name }} only. But when I removed jquery from my project, the value of {{ name }} was shown in that div.

I confirmed this behavior by putting alerts in jquery's wrap() and angularjs' wrap() functions. When angularjs' wrap() function is called, it works fine and angular environment is provided but when jquery's wrap() function is called, wrapping is done but angular environment is not provided or can say the tag is not compiled properly. How to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions