I have a table row that I can dynamically add into an existing table using some jQuery like so:
$("#add-item").click(function(){
var itemRow = "<tr><td><span contenteditable='true'><a href='#'>Edit me<a/></span></td></tr>";
$("#job-table").hide(0).append(itemRow).fadeIn(500);
});
I also have some data-binding that I can do with Angular like so:
<div>
<input type="text" ng-model="data.message">
<h1>{{data.message}}</h1>
</div>
What I want is to have something like this:
$("#add-item").click(function(){
var itemRow = "<tr><td><span contenteditable='true'><a href='http://something.com/{{content.url}}'>content.url<a/></span></td></tr>";
$("#job-table").hide(0).append(itemRow).fadeIn(500);
});
The problem is that angular can't access this dynamically loaded element because it's not available at load time.
What would be the best way to achieve this?