As a newcomer to Angular 9, I am currently working on developing an application. However, I have encountered some issues with defining properties and would greatly appreciate any assistance provided. Here's an overview of my project:
https://i.sstatic.net/ToVKG.png
This is the content of my app.component.html file directed towards my manager folder:
<button mat-raised-button id="Upgrade (click)="modal='Managers'">Managers</button>
<app-manager *ngIf="modal=='Managers'" (closemodalevent)="modal=null" [manager]="world.managers.pallier"></app-manager>
Here is a snippet from my app.component.ts file:
// Code for AppComponent goes here
// App related details will be placed in this section
Next, we have the manager.component.html code:
// Manager component HTML template resides at this location
// It handles the display and functionality of managers in the application
The issue arises when trying to access 'world' and 'server', leading to the following error messages:
'world' identifier is not defined within the context.
'server' identifier is not recognized or declared in this part of the application.
Despite declaring both 'server' and 'world' in app.component.ts, the error persists...
I extend my gratitude in advance to those willing to provide their valuable assistance.
Edit: My apologies for omitting this earlier as it was handled by someone else - presenting the manager.component.ts file:
// Import statements and Component decoratives
// Definition of methods and variables for managing components in the application
And lastly, the world.ts file structure:
// World class configuration including various attributes and parameters
// Essential data model for structuring the core functionalities of the program