Hello,
I am using meteor + angularjs + ui router.
I have list of clients displayed on the page. I am clicking on particular client and edit page is opened. This is working fine.
Now I am on the edit page and clicking Ctrl+F5 so I am refreshing edit page.
And here we have a problem. Id of the client is passed properly to controller but
var client = Clients.findOne({_id:$stateParams.clientId});
returns undefined.
So when I am entering client edit page by clicking on client on the list it is working fine. But when I am refreshing edit page meteor is not able to fetch edited client.
Thanks for your help.
Cheers.