You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example showed how redirection in resolve function will affect template and controller. When using route-segment, redirection in before resolve resolved is temporary. Once the resolve finish, original controller and template (OneCtrl and template-one) will be loaded back into <div app-view-segment></div> and keeping url with #/three.
On the other hand, ngRoute will not load OneCtrl and its template back into ng-view after redirection.
Question 2:
The example did not illustrate this problem.
But if I'm using a service name as resolve, the service function will be executed every time I route to that address. Not like in ngRoute, only function resolver will be executed every time, service resolver will only be executed once, which is the right behavior of a service.
Question 3:
Will this module support the new controllerAs syntax?
I really love this nested view module, especially the untilResolve option. Thank you in advance.
The text was updated successfully, but these errors were encountered:
Example: http://plnkr.co/edit/5tqVwC
Question 1:
The example showed how redirection in resolve function will affect template and controller. When using route-segment, redirection in before resolve resolved is temporary. Once the resolve finish, original controller and template (
OneCtrl
andtemplate-one
) will be loaded back into<div app-view-segment></div>
and keeping url with#/three
.On the other hand, ngRoute will not load
OneCtrl
and its template back intong-view
after redirection.Question 2:
The example did not illustrate this problem.
But if I'm using a service name as resolve, the service function will be executed every time I route to that address. Not like in ngRoute, only function resolver will be executed every time, service resolver will only be executed once, which is the right behavior of a service.
Question 3:
Will this module support the new
controllerAs
syntax?I really love this nested view module, especially the
untilResolve
option. Thank you in advance.The text was updated successfully, but these errors were encountered: