By 'finished', I mean all data binding has completed and there's nothing left for Angular javascript to run (until a user interacts with the DOM).
I need to call a javascript function I already have (which, fwiw, simply toggles the display of a few divs).
What I've Tried
I want to try and avoid the use of timeouts:
http://blog.brunoscopelliti.com/run-a-directive-after-the-dom-has-finished-rendering/
How long angular takes is arbitrary, and depends on too much for me to accurately use time intervals.
I've also tried app.run(function()...., but it runs too early!?
EDIT (for clarification)
Think of this scenario as 2 divs.
<div class="static">SOME CONTENT</div>
and
<div class="angular">{{ someContent }}</div>
On page load (initially), the user will see {{ someContent }} until Angular has 'finished'. I want to hide this angular div, and only show the static div, and then swap them (i.e. static becomes hidden, and angular becomes visible), once {{ someContent }} has been rendered out. It's surely really simple what I'm trying to do, ng-show sounds like it might be a solution - but I'm unsure of how to use it.
{{ variableName }}which will then (when completed), be swapped out forvariableValue, for example. Once this part has finished, I want to be able to show what it is that Angular just dealt with. I'm basically hiding the ugliness in the DOM until Angular has finished binding.{{ some content }}prior to Angular finishing the binding, and so can Google (the bigger problem).