Skip to content

Class name of generated service #2085

Closed

Description

@TwanoO67

Hello,

My env:
angular-cli: 1.0.0-beta.11-webpack.8
node: 6.3.1
os: linux x64 (lubuntu)

It seems to have a naming problem when using "ng g service name"

it creates "name.service.ts" with the export className where className is "Name"
and it create "name.service.ts" with an import of the previous file with the "NameService" as className.

So when running the tests, it has "no exported members" errors

( I don't know if this is already patched, but I can't find issues about that)

Activity

  1. filipesilva commented on Sep 20, 2016

    @filipesilva
    Contributor

    Fixed in #533

    Edit: Actually, that doesn't seem quite right... that's an old PR. It wasn't fixed there, but as far as I can tell it's fixed in master.

  2. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions