You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd been facing this issue of getting a blank list on returning from the item view page back to the list page. I always had to refresh the page to get the list again.
After struggling for the whole day, i finally found what exactly the issue was.
In, for example blog.client.routes.js file located in modules/blog/client/config directory, there are state route templateUrls that are starting from 'module/blog/client/views...' , there should be a slash '/' before the URL like '/modules/blog/client/view/...'
and the same slash '/' issue was resided in the blogs.client.service.js file located in \modules\blogs\client\services directory, which should have a '/api/blog/:blogId' instead of 'api/blog/:blogId' in the return statement of the service function.
Due to this addition of slashes, when the navigation is back tracked, the correct view and APIs are called.
As a suggestion to the MEANJS team, this should be done by the yo generator itself.
The text was updated successfully, but these errors were encountered:
atulkumar1234
changed the title
Yo generator CRUD module routing`
Yo generator CRUD module routing
Jun 9, 2017
I'd been facing this issue of getting a blank list on returning from the item view page back to the list page. I always had to refresh the page to get the list again.
After struggling for the whole day, i finally found what exactly the issue was.
In, for example blog.client.routes.js file located in modules/blog/client/config directory, there are state route templateUrls that are starting from 'module/blog/client/views...' , there should be a slash '/' before the URL like '/modules/blog/client/view/...'
and the same slash '/' issue was resided in the blogs.client.service.js file located in \modules\blogs\client\services directory, which should have a '/api/blog/:blogId' instead of 'api/blog/:blogId' in the return statement of the service function.
Due to this addition of slashes, when the navigation is back tracked, the correct view and APIs are called.
As a suggestion to the MEANJS team, this should be done by the yo generator itself.
The text was updated successfully, but these errors were encountered: