Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : findOne based on route

$
0
0
Thanks for the fast reply. Ok instead of trying to get the data inside the app state's define for the commit, I'm listening on the route change in the Commits component. This works when clicking on a link of one of the commits in the Commits view as the route changes and the event is fired.

However I can't get it to work when the URL is called directly, e.g. if the user would enter /frk/repo1/4asd56f4asd56f4asd65f into the URL bar. Is there something that is also called when the app is loaded? Or would I check which route is currently active somewhere in the application init code?

Viewing all articles
Browse latest Browse all 3491

Trending Articles