I am developing a web app using AngularJS and Angular-UI-router but get template for each page from server-side routing using Rails.
The problem is when I go to, for example
localhost/#/webboard (templateUrl: '/webboard')
and go to next page
localhost/#/topic/3 (templateUrl: '/posts/:post_id')
When I click the back button on the browser, usually the ui-view element turns blank. No error. the url and state change are working normally. After the blank ui-view occurs, backing to the other states does not appear anything, as well. Need to refresh the page to work and if I click back, the same thing happen again.
Has Anyone ever face this problem ? What should I do or did I miss something ?
Thank you