Skip to content

Instantly share code, notes, and snippets.

@tbranyen
tbranyen / problem.md
Last active December 19, 2015 22:59

I have a list of components that are dynamically bound to a parent region via region.components. This is an array that is rendered via ng-repeat. Since they are polymorphic and arbitrary, but all share the same base, I've created a base component directive. However, I want to hook (by component id) a directive up to the same component item. Since the property is dynamically evaluated the second directive never hooks into it.

First attempt: