Skip to content

bug: component relative path generation on windows: \\ #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HJHorst opened this issue Apr 14, 2016 · 2 comments
Closed

bug: component relative path generation on windows: \\ #436

HJHorst opened this issue Apr 14, 2016 · 2 comments

Comments

@HJHorst
Copy link

HJHorst commented Apr 14, 2016

When generating a component in a subfolder on windows, the url in templateUrl en styleUrls is not correct: \ should be /.

  1. OS. Windows 7
  2. Versions.
    angular-cli: 0.0.31
    node: 4.2.6
    os: win32 x64
  3. Repro steps.
    Generate a component in subfolder of app:
    ng g component feature/new-component

In new-component.ts:

  templateUrl: 'app\\feature/new-component/new-component.html',
  styleUrls: ['app\\feature/new-component/new-component.css'],

This leads to failed tests:

Chrome 48.0.2564 (Windows 7 0.0.0) NewComponent Component should ... FAILED
        Failed: Failed to load app%5Cfeature/new-component/new-component.html
            at C:/workspaces/angular2/cli-test/node_modules/angular2/bundles/tes
ting.dev.js:2059:20

@Brocco
Copy link
Contributor

Brocco commented Apr 14, 2016

Having the paths in these attributes will be going away when aligning with the style guide, you can follow the progress of that implementation in issue #316.

Closing this issue in favor of the mentioned issue.

@Brocco Brocco closed this as completed Apr 14, 2016
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants