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
Framework and version
Angular latest with auto-generated scale wrapper packages
Current Behavior
The logoutHandler function does not work well with angular navigation
Expected BehaviorCode Reproduction
A clear and concise description of what you expected to happen.
I haven't found a solution to make the logout function work correctly so that the navigation functions properly and the other components have enough time to render.
The ts and the template look like this:
Case 1 Logout bottom(scale-telekom-profile-menu):
Ui:
-The behavior is that it redirects you and displays the console msg, and it also executes the internal logic. However, when the navigation occurs, the surrounding components do not render correctly.
Example:
Case 2 Logout bottom(normal botton)
Ui:
-However, when the same action is triggered by a click event (in parentheses), it executes without any issues, performing the same action and rendering the rest of the components properly.
After further checks, I noticed that the "logoutHandler" function is outside the Angular's control zone, which is causing the navigation to break. I also realized this while looking at the following warning:
Would it be possible to change the logoutHandler so that it functions as a method, similar to how (scale-focus) works for inputs, for example? This way, it wouldn’t exit Angular’s control zone.
Guys, is it possible for you to change the logoutHandler property to a method? I know I was initially going to do it myself, but my team and I are currently at full capacity because we need to release the app to production, and I don’t have the time right now to develop it without being familiar with the tools yet. Once the workload eases a bit, I can continue to collaborate and help with whatever I can. @tshimber@amir-ba
Scale Version
Latest
Framework and version
Angular latest with auto-generated scale wrapper packages
Current Behavior
The logoutHandler function does not work well with angular navigation
Expected Behavior Code Reproduction
A clear and concise description of what you expected to happen.
I haven't found a solution to make the logout function work correctly so that the navigation functions properly and the other components have enough time to render.
The ts and the template look like this:
Ui:
-The behavior is that it redirects you and displays the console msg, and it also executes the internal logic. However, when the navigation occurs, the surrounding components do not render correctly.
Example:
Ui:
-However, when the same action is triggered by a click event (in parentheses), it executes without any issues, performing the same action and rendering the rest of the components properly.
Example:
@tshimber @acstll @felix-ico @amir-ba
The text was updated successfully, but these errors were encountered: