Varun Kalidindi

Varun Kalidindi

  • 2.1k
  • 21
  • 1.7k

NG0303: Can't bind to 'ngForOf' since it isn't a known property of 'di

Nov 3 2021 5:12 AM

I am fetching the data from server side using API. Please suggest as I am not able to go furthur.

export class AdministrationComponent {
  modules: Module[] = [];
  parentmodules: Module[] = [];
  showModules: boolean = false;.....

HTML Page

<div *ngFor="let eachparentmodule of parentmodules" class="mt-5">
    <h6 class="mb-0 text-uppercase">
        {{eachparentmodule.name}}
    </h6>.....

Answers (3)