Skip to content

kreuzerk/inject-pilot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inject pilot

Schematics to help you migrate constructor based injections in Angular code bases to inject

Why should I migrate?

  • Today's constructor based injections only work because Angular uses a flag that enables TypeScripts old behavior of how constructor properties are evaluated. Therefore using inject makes your code more future proof.
  • When using constructor based injections in combination with injection tokens, you do not get proper type safety. With inject this is not a problem.
  • inject makes it super convenient to inject services in combination with inheritance. No need for super calls.

Find out more about advantages of using the inject function.

Usage / Getting started

npx inject-pilot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published