<div
class="row caption-view"
ng-include="'app/views/inventory/grid-view/part.html'"
module="subscriber"
alias="il"
ng-controller="GridController as il"
ng-init="il.setGridParams(cse.gridParams.findCation);
cse.findCaptionGrid = il">
</div>
Within the 'cse' controller, I have included a view with its own controller using ng-include. Once everything has loaded, I can access and manipulate the 'GridController' by using 'cse.findCaptionGrid'.
However, there is an issue: The 'cse' controller is being loaded before I am able to interact with the 'GridController' (aka. 'cse.findCaptionGrid'). Even when attempting to use $timeout, the problem persists until a timeout delay of 5000 milliseconds is set.
My question is: Is it feasible to define the 'ng-init="il.setGridParams(cse.gridParams.findCation); cse.findCaptionGrid = il"' portion within the controller so that I can begin utilizing it immediately? Then in the HTML, I would simply indicate where this functionality should be displayed?