You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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
The text was updated successfully, but these errors were encountered: