Skip to content

Inconsistent naming for services #531

Closed
@thorstenschaefer

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions