google places auto complete not working on redirect

228 views Asked by At

I have 2 pages, a main page and a secondary. And in both the pages I have a form with the auto complete integrated.

In the main page after I choose a place(Auto complete works here) and click the submit button i get redirected to the secondary page, where the results get displayed.

When I use the form in this secondary page the auto complete doesn't work. But if I reload the page, it works.

I have tried $route.reload, $location.path($location.path()) etc, but that is not helping. Only location.reload() works, and the data stored in the services is getting reset when I use this.

0

There are 0 answers