Skip to content

fix(generate/component): generated templateUrl and styleUrls paths are broken #340

Closed

Description

@0x-r4bbit

Starting off with a fresh new A2 app using

$ ng new my-app

And creating a component using

$ ng g component test

Scaffolds the component fine in src/app/test however, templateUrl and styleUrls look like this:

templateUrl: 'app///test/test.html',
styleUrls: ['app///test/test.css']

angular-cli version: 0.0.26
node version: 4.3.2

Activity

  1. Brocco commented on Mar 23, 2016

    @Brocco
    Contributor

    The dynamic path feature has broken this, I will have a PR pushed up soon to fix this

  2. 0x-r4bbit commented on Mar 23, 2016

    @0x-r4bbit
    Author

    Awesome @Brocco thank you!

  3. added 4 commits that reference this issue on Mar 23, 2016
    c5ec087
    78e7374
    fbe6cba
    5ee4f2b
  4. 0x-r4bbit commented on Apr 6, 2016

    @0x-r4bbit
    Author

    This issue is still present with angular-cli version 0.0.29

    /cc @hansl @Brocco

  5. reopened this on Apr 6, 2016
  6. jkuri commented on Apr 6, 2016

    @jkuri
    Contributor

    Closing as it is resolved now on master.

  7. angular-automatic-lock-bot commented on Sep 5, 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.

  8. locked and limited conversation to collaborators on Sep 5, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions