marcorinck / jsf-updates-angular

Update angularJS after JSF Ajax requests are complete
5 stars 2 forks source link

Sometimes the injector isn't accessible after destroying child scopes #5

Closed stephanrauh closed 9 years ago

stephanrauh commented 9 years ago

Under certain circumstances the $injector object can't be accessed after destroying the child scopes. However, it can be accessed before. So far I didn't notice any disadvantage of retrieving and storing it before destroying the scopes.

This issue is addressed by my pull request.

marcorinck commented 9 years ago

As described in #3 and #6 this seems to be a problem because of you moving destroying of child scopes to the success phase instead of complete phase of ajax requests.

I will close this, please re-open if you see this behaviour without this change.

Thanks!