-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Generating controllers in subdirectories #242
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
Comments
I'd appreciate it if someone can confirm if this is indeed an issue, or if I'm doing something wrong |
@JaKXz Thanks for clarifying that. I guess the project is still a bit young to be fully reliable. |
@kosz well, you can give the new generator a shot, and report bugs which would be awesome of you. If your project isn't too big I'd just move everything over manually, but, we will be working on some sort of migration guide. |
@JaKXz sure thing i can play around with it and see what I can find. Where would I log bugs for this pull requests ? Just comment on the PR page or ? I guess there may be tons of small details, like the styling of the buttons on the login page, where would the small stuff go. Also another question : I didn't check yet, but was just wondering, does 2.0 bring us the ability to have a controller or view automatically included in the index .html/.jade files ? This and not automatically including newly installed bower packages was quite confusing for me at first, having come from a rails background where the asset pipeline automates all these things for me. Another note that i'd have to make after my first 5 mins of using 2.0.0 is that the app.scss file is in /client/app , next to app.coffee . Personally I find this a bit odd, having scripts and styles in the same dir. Also as I'm checking through stuff right now, it looks like an index.html file was created, even though I've specified for the project to use jade. In fact , looking through dirs more and it looks like .coffee .jade and .scss files reside in the same directories. This is pretty weird looking to me, not sure if it's a bug, or if it's how you guys want it |
I think the best thing to do would be to make new issues and indicate that you're testing the 2.0.0 branch. Thanks! To answer your questions, I suggest you go through #192 in detail. |
I'm having a very hard time trying to generate a controller in a subdirectory. I wouldn't think it would be realistic to expect a complete app to dump all it's controllers in the /controllers directory without subdirectories.
Currently when trying something like :
yo angular-fullstack:controller subdir/todo I get :
Furthermore ...
trying to create a controller in this location, by hand, gives the same results : The .js file when served through grunt has the html content of index.html. This .js file has the right content when opened in an editor.
Any thoughts ?
The text was updated successfully, but these errors were encountered: