-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(generate): ignore duplicate component symbol in module declarations #4446
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
Conversation
72af96b
to
2484124
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to configure your editor better...
return new NoopChange(); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge these 2 if
?
@@ -254,7 +262,7 @@ function _addSymbolToNgModuleMetadata(ngModulePath: string, metadataField: strin | |||
* into NgModule declarations. It also imports the component. | |||
*/ | |||
export function addDeclarationToModule(modulePath: string, classifiedName: string, | |||
importPath: string): Promise<Change> { | |||
importPath: string): Promise<Change> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert these.
@@ -54,13 +54,13 @@ export default Blueprint.extend({ | |||
|
|||
let defaultPrefix = ''; | |||
if (this.project.ngConfig && | |||
this.project.ngConfig.apps[0] && | |||
this.project.ngConfig.apps[0].prefix) { | |||
this.project.ngConfig.apps[0] && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert these whitespace changes.
7e393c1
to
c3df47f
Compare
@hansl fixed :) |
c3df47f
to
4d491ec
Compare
"ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
4d491ec
to
25ca13a
Compare
Seems like the changes @hansl asked for were made so marking for merge. |
…ymbol (angular#4446) "ng g c X" will no longer insert the component symbol in the NgModule's declaration array should it already exist. Closes angular#4323
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
ng g c X
will no longer insert the component symbol in the NgModule's declaration array should it already exist.Closes #4323
// cc @beeman, @Meligy