I'm having trouble either with the documentation or the implementation
of $compile. If it's the documentation, I'll submit a patch when I've
fully grokked it :) Here's the issue:
I'm trying to include Angular functionality in a dynamically attached
element. (tipsy and tooltipsy both animate using this functionality,
e.g.) I'm using $compile, which works partially. ng:click appears to
operate in the appropriate scope, but ng:repeat isn't operating as I
would hope--it thinks its compiled, but it doesn't seem to access the
controller's model. From the docs, it seemed like I needed to run
$apply, but it doesn't help when I run it in the current scope (I can
run it in ActionA with no effect. If I run it right after $compile,
there's a digest in progress.)
http://jsfiddle.net/z7a58/4/
Here's an attempt to save a reference to the element and run $apply on
the scope, but when I do that it tells me there's a digest already in
progress:
http://jsfiddle.net/z7a58/5/
Is this me misunderstanding $compile, scope, ng:controller, or
something else?