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
Hi,
I had an issue when creating a new endpoint with a snake-case name:
yo angular-fullstack:endpoint some-endpoint
Everything was created as expected except fot the variable names introduced inside the generated template files.
Even though the generated routes and filenames work ok with snake-case phrases - in this case:
some-endpoint.controller.js
the name should be formatted as a valid javascript variable in order to avoid these kind of situations:
Changes:
- remove unneeded code
- use runTest for endpoints as well
- test endpoints with different options
- test endpoints with various cased named
Exposes Bug:
See angular-fullstack#540
kingcody
added a commit
to kingcody/generator-angular-fullstack
that referenced
this issue
Sep 10, 2014
Hi,
I had an issue when creating a new endpoint with a snake-case name:
Everything was created as expected except fot the variable names introduced inside the generated template files.
Even though the generated routes and filenames work ok with snake-case phrases - in this case:
the name should be formatted as a valid javascript variable in order to avoid these kind of situations:
Maybe the callback argument should be filled with the same classnamed version of the name.
The text was updated successfully, but these errors were encountered: