Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yo generator CRUD module routing #276

Open
atulkumar1234 opened this issue Jun 9, 2017 · 0 comments
Open

Yo generator CRUD module routing #276

atulkumar1234 opened this issue Jun 9, 2017 · 0 comments

Comments

@atulkumar1234
Copy link

atulkumar1234 commented 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.

@atulkumar1234 atulkumar1234 changed the title Yo generator CRUD module routing` Yo generator CRUD module routing Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant