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

Is there a route generator? #101

Open
rohanabraham opened this issue Jan 11, 2015 · 4 comments
Open

Is there a route generator? #101

rohanabraham opened this issue Jan 11, 2015 · 4 comments

Comments

@rohanabraham
Copy link

I couldn't get
yo angular-famous-ionic:route myRoute to work.

It will be nice to have something similar to
https://github.com/yeoman/generator-angular#route

Is this already available?

@thaiat
Copy link
Contributor

thaiat commented Jan 11, 2015

Hi @rohanabraham, there is no specific route generator, as this behavior is already included in the module generator which scaffold the code for stating the route and a initial view:

yo angular-famous-ionic:module modulename

The result is a modulename/index.js where you can define you route, as well as a html file views/home.html

When adding additional routes, just modify the code in the config of modulename/index.js, and create a template in views. Additionally if you need a controller for your route you can scaffold it with

yo angular-famous-ionic:controller modulename controllername

Let me know if this helps

@rohanabraham
Copy link
Author

Hi Avi

Thanks for your reply. The approach you described makes sense. Thanks.
I still feel that a route generator will make it easier. It will automatically create a view template, add route and the controller.

PS: I think your talk was brilliant, it was very informative with Codio, Browserify, Famo.us, etc. Never had my brain blown so much with one talk :) !! If you or your colleague ever visit London, we would like you to give a talk at our Famo.us Developers group.

@thaiat
Copy link
Contributor

thaiat commented Jan 12, 2015

Hi @rohanabraham, thanks for the very kind words
i see what you mean about the route, i will see how i can do that

can you send me an email : thaiat "at" yoobic.com to talk about the meetup ?

@KManu
Copy link

KManu commented Jun 28, 2015

Was looking for something exactly like this, and i was led here. I agree something like this would be greatly enhancing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants