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

fix(find-lazy-modules): Allow for any valid keys/value to be used #1987

Merged
merged 2 commits into from
Sep 6, 2016

Conversation

hansl
Copy link
Contributor

@hansl hansl commented Sep 5, 2016

and properly understand and return the modules in this case.

Also refactored that function to be clearer, and added a test to cover. I made sure the test was failing before this PR ;)

Fixes #1891, #1960.

cc @filipesilva @ericjim @chalin - See similar #1972

and properly understand and return the modules in this case.

Also refactored that function to be clearer, and added a test to cover.
I made sure the test was failing before this PR ;)

Fixes angular#1891, angular#1960.

cc @filipesilva @ericjim @chalin - See similar
angular#1972
@filipesilva
Copy link
Contributor

There's a small lint error but otherwise LGTM.

@hansl hansl merged commit caa3142 into angular:master Sep 6, 2016
catull pushed a commit to catull/angular-cli that referenced this pull request Sep 6, 2016
…gular#1987)

* fix(find-lazy-modules): Allow for any valid keys/value to be used
and properly understand and return the modules in this case.

Also refactored that function to be clearer, and added a test to cover.
I made sure the test was failing before this PR ;)

Fixes angular#1891, angular#1960.

cc @filipesilva @ericjim @chalin - See similar
angular#1972

* cleanup
@chalin
Copy link

chalin commented Sep 6, 2016

@hansl : thanks for the fix!

Must the value's of a loadChildren key be a string literal or can it be any expression that evaluates to a string such as:

{
           'loadChildren': `app/{$foo}/settings.module#Module`
};

'loadChildren': 'moduleC'
};
const r4 = {
"loadChildren": 'app/+workspace/+settings/settings.module#SettingsModule'
Copy link

Choose a reason for hiding this comment

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

@hansl - can the value of the loadChildren key be any expression (that evaluates to a string) or must it be a string literal?

cc @ericjim

@hansl hansl deleted the fix-lazy-module branch November 2, 2016 18:01
@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.

Angular Cli 1.0.0-beta.11-webpack.8: ng build failed if route 'loadChildren'
4 participants