Skip to main content

Can't bind to 'ngForIn' since it isn't a known property of 'a'.

Can't bind to 'ngForIn' since it isn't a known property of 'a'.

platform-browser-dynamic.js:230 Uncaught Error: Template parse errors:
Can't bind to 'ngForIn' since it isn't a known property of 'a'. ("
<a href="#" [ERROR ->]*ngFor="let training in trainings" (click)="">{{training}}</a>
Property binding ngForIn 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". ("

Solution 1:


The ngFor syntax is
let training of trainings

It is not

let training in trainings

Comments

Popular posts from this blog

Can't bind to 'value' since it isn't a known property of 'mat-option'.

Can't bind to 'value' since it isn't a known property of 'mat-option'. platform-browser-dynamic.js:230 Uncaught Error: Template parse errors:
Can't bind to 'value' since it isn't a known property of 'mat-option'.
If 'mat-option' is an Angular component and it has 'value' input, then verify that it is part of this module.If 'mat-option' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("lay" name="">
Solution 1: Add import {MatSelectModule} from '@angular/material/select';
in app.module.ts file.
And specify in imports property of NgModule.

'mat-grid-tile' is not a known element

'mat-grid-tile' is not a known element platform-browser-dynamic.js:230 Uncaught Error: Template parse errors: 'mat-grid-tile' is not a known element: 1. If 'mat-grid-tile' is an Angular component, then verify that it is part of this module. 2. If 'mat-grid-tile' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. (" Solution 1:
import {MatGridListModule} from '@angular/material/grid-list';
in app.modules.ts
And specify MatGridListModule in the import property.

mat-form-field must contain a MatFormFieldControl

mat-form-field must contain a MatFormFieldControl ERROR Error: mat-form-field must contain a MatFormFieldControl.     at getMatFormFieldMissingControlError (form-field.es5.js:89)     at MatFormField._validateControlChild (form-field.es5.js:604)     at MatFormField.ngAfterContentInit (form-field.es5.js:359)     at callProviderLifecycles (core.js:12733)     at callElementProvidersLifecycles (core.js:12707)     at callLifecycleHooksChildrenFirst (core.js:12690)     at checkAndUpdateView (core.js:13840)     at callViewAction (core.js:14187)     at execEmbeddedViewsAction (core.js:14145)     at checkAndUpdateView (core.js:13837)