Skip to content

Inconsistent naming for services #531

Description

@thorstenschaefer

Based on the official Angular2 documentation, it seems that the standard for naming services is:
UserService, defined in class user.service.ts
If I generate a service using "ng g service user", it creates the correct file (create src/client/app/user.service.ts), but the class itself is named "User" instead of "UserService".

Is this the intention or a bug? Note that when using "ng g service UserService", the class name would be "user-service.service.ts", which doesn't seem nice either.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions