Skip to content

Commit cefea43

Browse files
cexbrayatalan-agius4
authored andcommitted
fix(@schematics/angular): remove constructor from service template
Now that the style guide recommends to use `inject()`, having a constructor in a service is not really useful.
1 parent 1aeefa7 commit cefea43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/schematics/angular/service/files/__name@dasherize__.__type@dasherize__.ts.template

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ import { Injectable } from '@angular/core';
44
providedIn: 'root'
55
})
66
export class <%= classify(name) %><%= classify(type) %> {
7-
8-
constructor() { }
7+
98
}

0 commit comments

Comments
 (0)