Skip to content

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

Description

@edgaras87

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....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions