Skip to content

Generated import paths can sometimes be simplified #6183

Closed
@cexbrayat

Description

@cexbrayat

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Versions.

ng 1.1.0-beta.0

Repro steps.

ng g m hello
ng g s hello2 -m hello/hello.module

generates a new module and a new service with this import:

import { Hello2Service } from './../hello2.service';

which could be simplified in

import { Hello2Service } from '../hello2.service';

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussioneffort1: easy (hours)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions