Skip to content

fix(generate): fix style and template url references - #341

Merged
hansl merged 1 commit into
angular:masterfrom
Brocco:dynamic-path-ref
Mar 23, 2016
Merged

fix(generate): fix style and template url references#341
hansl merged 1 commit into
angular:masterfrom
Brocco:dynamic-path-ref

Conversation

@Brocco

Copy link
Copy Markdown
Contributor

Dynamic paths for components were incorrectly generating paths for templates and styles
Fixes#340

locals: function(options) {
return {
dynamicPath: this.dynamicPath.dir
dynamicPath: this.dynamicPath.dir === path.sep

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sounds like a path.resolve(this.dynamicPath.dir) or something like that, no?

@hansl

Copy link
Copy Markdown
Contributor

Please add a test for this.

@Brocco
Broccoforce-pushed the dynamic-path-ref branch 2 times, most recently from 78e7374 to fbe6cbaCompareMarch 23, 2016 18:55
@@ -1,5 +1,6 @@
var stringUtils = require('ember-cli/lib/utilities/string');
var dynamicPathParser = require('../../utilities/dynamic-path-parser');
var path = require('path');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: not needed anymore.

@hansl

Copy link
Copy Markdown
Contributor

2 nits, but LGTM. Stamping this. Good work! :)

Dynamic paths for components were incorrectly generating paths for templates and styles
Fixesangular#340
@Brocco

Copy link
Copy Markdown
ContributorAuthor

Thanks @hansl nits have been handled/updated

@hansl
hansl merged commit 5ee4f2b into angular:masterMar 23, 2016
@Brocco
Brocco deleted the dynamic-path-ref branch March 24, 2016 00:24
@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 9, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants

@Brocco@hansl