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

feat(module): add ability to generate a routing file for new modules #1971

Merged
merged 1 commit into from
Sep 9, 2016

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Sep 4, 2016

No description provided.

@hansl
Copy link
Contributor

hansl commented Sep 7, 2016

LGTM, but I'll block this until my e2e is in and you add a new e2e to test this. It's easy so shouldn't be a big deal ;)

@hansl
Copy link
Contributor

hansl commented Sep 8, 2016

Okay my e2e PR is in master now. Could you rebase and add an e2e? It should be simple :) Just add a new e2e for modules (I think there might be missing one already).

@Brocco
Copy link
Contributor Author

Brocco commented Sep 9, 2016

@hansl I updated the PR with some e2e tests



export default function() {
const moduleDir = join(process.cwd(), 'src', 'app', 'test-module');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoid using process.cwd(). And you can simply use src/app/test-module as it doesn't matter if it's windows or not (for the expect functions).

@hansl
Copy link
Contributor

hansl commented Sep 9, 2016

LGTM

@Brocco Brocco merged commit 9ddba69 into angular:master Sep 9, 2016
@Brocco Brocco deleted the module-routes branch September 9, 2016 02:45
@jennyraj
Copy link

Does this enable route generation or it is still disabled?

@hansl
Copy link
Contributor

hansl commented Sep 10, 2016

It generates all the building block but not route generation. Inserting and making your routes is simpler now than it was before though.

@jennyraj
Copy link

Thanks you!

@chriscurnow
Copy link

@hansl, re

It generates all the building block but not route generation. Inserting and making your routes is simpler now than it was before though.

It looks like this is included in the latest release but how do we use it?

@hansl
Copy link
Contributor

hansl commented Sep 21, 2016

ng generate module MODULE_NAME --routing.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants