I am building a directive which has map layer object (for my questetion the object doesnt really matter). I initialize the object within the link function of the directive. One if my scope function inside this directive (which is also defined in the same link) uses this layer object to place object on it when its called from outside the directive.
The problem is that some times (it depends on the threads order) there is a situaition where i call the place object on layer before the part of the code in the link which initialize this layer executes. How can i fixe this? Im looking for a way to know if the link function has ended execution before placing object on that layer. Thanks in advance for helping -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
