Skip to content

Update templates to use inject instead of constructor #5136

@timdeschryver

Description

@timdeschryver

Which @ngrx/* package(s) are relevant/related to the feature request?

schematics

Information

The schematic templates make use of constructor, this needs to be update to use the inject method.

This can be replaced in:

  • .\modules\schematics\src\component-store\files_name@dasherize@if-flat__name@dasherize_.store.ts.template
  • .\modules\schematics\src\data\files_name@dasherize@if-flat__name@dasherize_.service.ts.template
  • .\modules\schematics\src\effect\files_name@dasherize@if-flat__name@dasherize_.effects.ts.template

Describe any alternatives/workarounds you're currently using

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions