Skip to content

Commit 3796ddd

Browse files
Brooooooklynclaude
andauthored
fix: compile @Injectable with coexisting PRIMARY decorators on the same class (#75)
Angular's `HandlerPrecedence` system allows `@Injectable` (SHARED) to coexist with exactly one PRIMARY decorator (@component, @directive, @pipe, @NgModule). The `else if` chain only processed one decorator per class, so @Injectable would block @Pipe/@NgModule (or vice versa) when both were present. Fix: - Reorder chain: all PRIMARY decorators checked before SHARED @Injectable - Add nested @Injectable checks inside each PRIMARY branch to generate ɵprov - Mirror the same logic in the re-parse decorator span collection section - Fix #65 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4245d55 commit 3796ddd

File tree

1 file changed

+409
-62
lines changed

1 file changed

+409
-62
lines changed

0 commit comments

Comments
 (0)