Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

577
Views
Error Angular 13: ngForOf no utilizado por ninguna directiva... No se puede vincular a 'ngForOf'

estoy recibiendo este error

 Property binding ngForOf not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". >

No se puede vincular a 'ngForOf' ya que no es una propiedad conocida de 'a'

Ya importé todos los módulos necesarios: CommonModule , BrowserModule , ReactiveFormsModule

aplicación.módulo.ts:

 import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { RecipesComponent } from './components/recipes/recipes.component'; import { RecipeListComponent } from './components/recipes/recipe-list/recipe-list.component'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { CommonModule } from '@angular/common'; @NgModule({ declarations: [ AppComponent, HeaderComponent, RecipesComponent, RecipeListComponent, ], imports: [ BrowserModule, AppRoutingModule, FormsModule, ReactiveFormsModule, CommonModule, ], providers: [], bootstrap: [AppComponent], schemas: [CUSTOM_ELEMENTS_SCHEMA] }) export class AppModule { }

lista-de-receta.component.ts :

 <div class="row"> <div class="col-xs-12"> <a href="#" class="list-group-item clearfix" *ngFor="let recipe of recipes"> // error ngFor <div class="pull-left"> <h4 class="list-group-item-heading"> {{ recipe.name}} </h4> </div> <span class="pull-right"> <img [src]="recipe.imagePath" alt=" {{recipe.name}} " srcset="" class="img-responsive" style="max-height: 50px"> </span> </a> <app-recipe-item></app-recipe-item> </div> </div>

Estoy usando Angular v13.1.1 / Node v16.13.1 / VSCode v1.63.2

pantalla de mi error

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Deshabilitar la extensión de Visual Studio "Angular Language Service" resolvió el problema.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!