Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

Angular Error: src/app/app.component.html:3:29 - error TS2341: Property 'firebase_Data' is private and only accessible within class 'AppComponent'.

 

 

 

    Error: src/app/app.component.html:3:29 - error TS2341: Property 'firebase_Data' is private and only accessible within class 'AppComponent'.

 

    3     <li *ngFor="let item of firebase_Data">

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

 

      src/app/app.component.ts:8:16

        8   templateUrl: './app.component.html',

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

        Error occurs in the template of component AppComponent.

 

Cause:

A variable to be displayed with angular in the web page is not declarated as public in the .ts typescript file

 

private firebase_Data;

 

 

 

Solution

You have to declarate the variables in the app.component.ts with public

In the app.component.ts declare the variable as pulic

 

export class AppComponent {

  //--< Daten >--

  title = 'dailycheck';

  public firebase_Data;

 

Then a variable can be displayed in the app.component.html

Mobile
»
Angular Error: NgFor only supports binding to Iterables such as Arrays.
»
Angular Error app.component.html error TS2341: Property var is private and only accessible within class AppComponent
»
Angular Error NullInjectorError No provider for AngularFireDatabase
»
Solved Angular Firebase Fehler TS2305: Module firebase/app has no exported member firestore
»
Angular Error NG8002: Cant bind to ngModel since it isnt a known property of input.
»
Angular Fehler: Error: HostResourceResolver: could not resolve
»
Error message: ng serve The serve command requires to be run in an Angular project
»
Error message: The file cannot be loaded. The file is not digitally signed npm ng.ps1

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de