I am trying to use jQuery to insert a div and within that div thers angular content that needs to be rendered. but it doesnt get rendered when click on the button.
myVar = $("<div class="a"><p ng-repeat="banana in bananas">{{banana}}</p></div>");
$("button").click(function () {
myVar.appendTo(".myOtherDiv");
});
appendTo works fine but instead of giving me a list of bananas i get {{bananas}}
Is there a way of making Angular the element when jQuery puts it on the DOM?