I have the following code in my html modal component:
<ng-container *ngFor="let school of schools">
{{school.name}}
<ng-container>
However I'm getting the following error:
“Can't bind to 'ngForOf' since it isn't a known property of 'ng-container'
I've looked at other people's solutions online who suggest importing forms module, reactive forms module and common module, but I already have these imported in the modal module
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
Does anyone have any other suggestions on how I can get rid of this error?