cancel
Showing results for 
Search instead for 
Did you mean: 

Can we handle route of a view even before that view is rendered?

chirag_maladkar
Explorer
0 Kudos

Hi,

I am having problem with rendering a view because the value needed for variables in the view is being sent through URL/route.

But the view's createContent is rendered even before the control is passed to view's controller (where handleRouteMatched function resides) which throws error.

Is there a way we can handle route even before createContent is called?

Regards,

Chirag

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

why not to use events or promises/defferes?

chirag_maladkar
Explorer
0 Kudos

Thanks Maksim!

Will definitely try it out.

Answers (0)