How to combine an AngularJS component and directive to enable compilation?

59 Views Asked by At

I need to refresh one HTML element at certain times. The element is currently generated by a component. I've managed to add a directive (the Attributes example at AngularJS Reference / $compile) to my custom module, but I don't know how to link the two together so that I can trigger the directive to compile from the component.

I could either nest the component inside the directive, or the directive inside the component with the element inside the directive. But I still don't know how to trigger the directive to compile from the component.

0

There are 0 best solutions below