Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Angular Fehler: error TS2339: Property myVariable does not exist on type myComponent.

18.12.2020 (👁2814)

Angular Fehler: error TS2339: Property myVariable does not exist on type myComponent.

 

 

Folgende Fehlermeldung kommt in Visual Code:

    Error: src/app/components/liste/liste.component.html:2:25 - error TS2339: Property 'Anzahl_Mitglieder' does not exist on type 'ListeComponent'.

 

    2 <p>Anzahl Mitglieder {{ Anzahl_Mitglieder }}  </p>

                              ~~~~~~~~~~~~~~~~~

 

      src/app/components/liste/liste.component.ts:5:16

        5   templateUrl: './liste.component.html',

                         ~~~~~~~~~~~~~~~~~~~~~~~~

        Error occurs in the template of component ListeComponent.

 

Ursache:

In Visual Code wird mit Strg+S nur die aktuelle Datei gespeichert.

Man erkennt es an den zwei Punkten in den Tab-Reitern.

Lösung:

In Visual Code alle geänderten Dateien speichern

In Visual Code ->Ausgabe im ng serve

 

Save All in Visual Code