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

The generator DOES NOT automatically add the ProductAlertsComponent to the AppModule. #54169

Closed
kevhaha opened this issue Jan 31, 2024 · 2 comments
Labels
area: docs Related to the documentation
Milestone

Comments

@kevhaha
Copy link

kevhaha commented Jan 31, 2024

Describe the problem that you experienced

Under step 7 of Pass data to a child component section, it states 'The generator automatically added the ProductAlertsComponent to the AppModule to make it available to other components in the application.'

Because of the 'new' organizational pattern that was introduced in Angular v15, standalone components are now autogenerated and the component needs to be manually entered.

Also may need to update the standalone flag and the imports key on the component generated.

Friendly reminder you have to manually do this again when generating the ProductDetailsComponent for anyone who isn't copy/pasting the code.

Enter the URL of the topic with the problem

https://angular.io/start#pass-data-to-a-child-component

Describe what you were looking for in the documentation

There should be an update mentioning that the component is NOT automatically added to the AppModule.

Describe the actions that led you to experience the problem

Following along with the official Angular documentation to learn Angular.

Describe what you want to experience that would fix the problem

Mention the update.

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

[ERROR] NG2: Object is possibly 'undefined'.

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

@JeanMeche JeanMeche added area: aio area: docs Related to the documentation labels Jan 31, 2024
@ngbot ngbot bot modified the milestone: needsTriage Jan 31, 2024
@JeanMeche
Copy link
Member

Hi, we're looking at deprecating angular.io in favor of https://angular.dev.

We recommend you follow the new tutorials there as we won't be updating the old ones, thank you.

@JeanMeche JeanMeche closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
@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 Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: docs Related to the documentation
Projects
None yet
Development

No branches or pull requests

3 participants
@JeanMeche @kevhaha and others