question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate new component template and style path issue

See original GitHub issue

image

When I’m creating a new component the templateUrl and styleUrls have a double slash after app folder.

Is this expected behaviour?

OS. El Capital (but also on Win 10) Versions. angular-cli: 0.0.31 node: 5.10.1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Broccocommented, Apr 18, 2016

@hansl yes, this will be handled via PR #427 which is currently being reviewed.

1reaction
0x-r4bbitcommented, Apr 15, 2016

Hm… okay leaving this here as it seems related: https://github.com/angular/angular-cli/issues/340

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generate component with inline template and style using ...
For inline templates, we need to add --inlineTemplate=true. By default its value is false. For inline style, we need to add --inlineStyle=true.
Read more >
Angular components overview
This topic describes how to create and configure an Angular component. ... In most cases, you define the styles for your component's template...
Read more >
Generating new components doesn't seem to work #526
Running the component schematic on a new Nx workspace v6 appears to work correctly. Might just be an issue in that example project....
Read more >
How to solve error in HostResourceResolver?
So make sure you have the file in your project. It can also happen when you do not give the correct path to...
Read more >
How to avoid a File Hell: Angular's Single File Component
Path to inline ... By default, Angular CLI is not configured to inline the template and the style of the component: it creates...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found