Automatically $broadcast data
<p>I'm trying to<code>$broadcast</code> some data from one controller to another using the<code>$rootScope</code> .</p>

<p>It appears to work fine if I use a trigger like an ng-click to run the function that will broadcast but how do it without that? </p>

<p>As you can see in the fiddle, I have the broadcast in a <code>$scope.cast</code> function so why is it not working if I run the function like this: <code>$scope.cast();</code> ?</p>

<p>Fiddle: <a href="https://jsfiddle.net/kjgj7Ldz/19/" rel="nofollow">https://jsfiddle.net/kjgj7Ldz/19/</a></p>

<p>I need this because I am getting some data in the first controller and when that finishes, I want to automatically broadcast it without <code>ng-click</code>, <code>ng-change</code> or any other triggers.</p>

<p>Is <code>$broaadcast</code> a wrong thing to do in this scenario? If so, how can I achieve data communication between those two controllers?</p>