I have a list of contacts built in Angular, and I need to create an "Add Activity" function.
To do this I want to be able to insert an external HTML template with its own controller into an existing template dynamically.
The current HTML is as follows:
<table style="width:100%">
<tr ng-repeat="Contact in Contacts | orderBy: 'LastName'">
<td> {{ Contact.FirstName }} {{ Contact.LastName }} </td>
<td>Add Activity</td>
</tr>
</table>
I want to click Add Activity and have Angular insert HTML from an external template into a new row beneath the clicked row.
Is this possible?