Skip to content

Commit

Permalink
fix(@schematics/angular): alphabetically order imports during compone…
Browse files Browse the repository at this point in the history
…nt generation

change the order of imports during component generation using changeDetectionStrategy set to OnPush

closes #23156

(cherry picked from commit d899091)
  • Loading branch information
eltonc-dev authored and clydin committed May 18, 2022
1 parent 587082f commit b928d97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%><% if(changeDetection !== 'Default') { %>, ChangeDetectionStrategy<% }%> } from '@angular/core';<% if(standalone) {%>
import { <% if(changeDetection !== 'Default') { %>ChangeDetectionStrategy, <% }%>Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }%> } from '@angular/core';<% if(standalone) {%>
import { CommonModule } from '@angular/common';<% } %>

@Component({<% if(!skipSelector) {%>
Expand Down

0 comments on commit b928d97

Please sign in to comment.