2

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?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.