Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How this code is accessing injected account service as private in app component's html? #7

Open
edgaras87 opened this issue May 26, 2022 · 0 comments

Comments

@edgaras87
Copy link

Am I missing something?
we are injecting service here as:

export class AppComponent implements OnInit, OnDestroy {
. . .
constructor(private accountService: AccountService, . . .) { }

and then we are using it in app component's html:

Cash: {{accountService.balance | currency:'USD':'symbol':'.2'}}

I getting error that it can't be use as private....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant