Skip to content

Commit

Permalink
fix(@schematics/angular): use styleUrl
Browse files Browse the repository at this point in the history
The `ng g c` schematic is already using `styleUrl`, but `app.component.ts` was still using `styleUrls`.
  • Loading branch information
cexbrayat committed Nov 8, 2023
1 parent 48ac211 commit 4bcc2ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Component } from '@angular/core';
`,<% } else { %>
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
styles: []<% } else { %>
styleUrls: ['./app.component.<%= style %>']<% } %>
styleUrl: './app.component.<%= style %>'<% } %>
})
export class AppComponent {
title = '<%= name %>';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { RouterOutlet } from '@angular/router';<% } %>
`,<% } else { %>
templateUrl: './app.component.html',<% } if(inlineStyle) { %>
styles: [],<% } else { %>
styleUrls: ['./app.component.<%= style %>']<% } %>
styleUrl: './app.component.<%= style %>'<% } %>
})
export class AppComponent {
title = '<%= name %>';
Expand Down

0 comments on commit 4bcc2ac

Please sign in to comment.