Hi Hoàng,

When I write my error handling, I do write it in plain ES5, without any 
framework. When I need 'redirect's then I use window.location. 
 XMLHttpRequest to communicate the errors back to my server. That is namely 
one piece of code, you don't want to depend on anything else, and to be 
always available!. 

Aside from that, if you create an injector using 
`ReflectiveInjector.resolveAndCreate()` you're essentially bypassing 
Angular's injector tree. That means that you have no access to the routes 
in your app in the instance of the router you are injecting. 
So, now the question, do you need that?

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to