You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[4.x] Don't allow injecting classes without @Injectable #13820
I have a question of why making useClass so different?
Would @Injectable() also be mandatory for useFactory when decorator for function expression implementation being ready?
If so, is it a good way to use the same decorator reference to supporting two different decorator types?
If not, why everything using useFactory/useValue... is injectable by default while what in useClass needs explicitly declared to be injectable?
Activity
trotyl commentedon Jan 17, 2017
I have a question of why making
useClassso different?Would
@Injectable()also be mandatory foruseFactorywhen decorator for function expression implementation being ready?If so, is it a good way to use the same decorator reference to supporting two different decorator types?
If not, why everything using
useFactory/useValue...is injectable by default while what inuseClassneeds explicitly declared to be injectable?Toxicable commentedon Apr 8, 2017
Was this not fixed via b23ad39 ?
chuckjaz commentedon Apr 13, 2017
Closed by #14931
angular-automatic-lock-bot commentedon Sep 11, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.