content icon indicating copy to clipboard operation
content copied to clipboard

Added changes to remove errors discovered while following instructions.

Open Pignated opened this issue 2 years ago • 3 comments

Imported CommonModule (could only import NgFor instead) and set app component as standalone. Without importing NgFor, ngForOf won't bind to li used in the template. Angular expects the component to be standalone. There could be better ways to fix this, I'm writing this while going through the tutorial.

Description

Imported CommonModule and added standalone flag to app.components.ts. Otherwise the built app does not work as intended (or at all in the case of the standalone flag)

Motivation

Without these changes (or others, I am not the most knowledgeable) I was unable to proceed with the tutorial. There could be better fixes for the issues I encountered, but following the current instructions exactly does not work.

Additional details

Related issues and pull requests

I have not created an issue but upon my search of the word "angular" in issues and PRs there isn't anything about this problem.

Pignated avatar Feb 05 '24 22:02 Pignated

I did follow all steps, including the ones on the page before to set up angular. I am guessing the problem is that it was written for an older version

Pignated avatar Feb 05 '24 22:02 Pignated

Thanks. I'm unassigning myself as I know nothing about Angular.

hamishwillee avatar Feb 16 '24 01:02 hamishwillee