Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Private services would be nice for multi-purpose modules #5887

Open
@mbenford

Description

@mbenford

When developing a component (a directive, a service etc) which is supposed to be used by another apps, it would be nice if some internal services (that are relevant to that component only) could be private, so they don't "leak" into the apps using the main component, which in turn would prevent them from clashing with other services defined in other modules.

The current workaround (which I believe is just common sense, not an official guideline) is to add some prefix to the name of those internal services in order to reduce the odds of them clashing, which IMO isn't ideal because it prevents one app from having nicely-named services (e.g, configuration).

What do you guys think?

Kind regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions