Coding⏱️ 2 min read📅 2026-05-31

How to Fix: Exception: Can't bind to 'ngFor' since it isn't a known native property

The issue is caused by a typo in the import statement. The correct import statement should be from 'angular2/angular2' instead of 'angular2/angular2'.

Quick Answer: Change the import statement to use the correct module name.

The 'Exception: Can't bind to 'ngFor' since it isn't a known native property' error occurs because the Angular directive ngFor is not imported correctly. To fix this issue, you need to import the NgFor directive from the '@angular/core' module.

🔍 Why This Happens

  • [Cause]

🔧 Proven Troubleshooting Steps

Method 1: Importing NgFor Directive

  1. Step 1: Import the NgFor directive from '@angular/core' module in your component.

Method 2: Correcting ngFor Template Syntax

  1. Step 1: Ensure the template syntax for ngFor is correct, using 'for' instead of '<'.

🎯 Final Words

By following these steps, you should be able to resolve the 'Exception: Can't bind to 'ngFor' since it isn't a known native property' error and successfully use ngFor in your Angular application.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions