Skip to content

Commit

Permalink
fix(generate): use canonical paths for template and style URLs
Browse files Browse the repository at this point in the history
Close #1840
  • Loading branch information
Brocco authored and filipesilva committed Aug 26, 2016
1 parent 5b2731c commit 339af33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Component, OnInit } from '@angular/core';
<%= dasherizedModuleName %> Works!
</p>
`,<% } else { %>
templateUrl: '<%= dasherizedModuleName %>.component.html',<% } if(inlineStyle) { %>
templateUrl: './<%= dasherizedModuleName %>.component.html',<% } if(inlineStyle) { %>
styles: []<% } else { %>
styleUrls: ['<%= dasherizedModuleName %>.component.<%= styleExt %>']<% } %>
styleUrls: ['./<%= dasherizedModuleName %>.component.<%= styleExt %>']<% } %>
})
export class <%= classifiedModuleName %>Component implements OnInit {

Expand Down
4 changes: 2 additions & 2 deletions addon/ng2/blueprints/ng2/files/__path__/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { APP_SHELL_DIRECTIVES } from '@angular/app-shell';<% } %>
</h1>
`,
styles: [],
directives: [APP_SHELL_DIRECTIVES]<% } else { %>templateUrl: 'app.component.html',
styleUrls: ['app.component.<%= styleExt %>']<% } %>
directives: [APP_SHELL_DIRECTIVES]<% } else { %>templateUrl: './app.component.html',
styleUrls: ['./app.component.<%= styleExt %>']<% } %>
})
export class AppComponent {
title = 'app works!';
Expand Down

0 comments on commit 339af33

Please sign in to comment.