'How can I declare a main attribute in ts file and use it in different ts files from different components

I have a main attribute isSigned in app.component.ts app.component.ts and I want to use this attribute in signIn.component.tssignIn.component.ts and nav-bar.component.ts nav-bar.component.ts but i can't access to the main attribute isSigned



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source