Commit 4c8aeef
fix($compile): do not use
Currently, custom annotations are copied from the CDO onto the controller constructor.
Using `noop()` when no controller has been specified, pollutes it with custom annotations and
makes one component's annotations available to all other components that have `noop()` as their
controller.
Fixes angular#14391
Closes angular#14402noop() as controller for multiple components1 parent d384834 commit 4c8aeef
2 files changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10506 | 10506 | | |
10507 | 10507 | | |
10508 | 10508 | | |
10509 | | - | |
| 10509 | + | |
10510 | 10510 | | |
10511 | 10511 | | |
10512 | 10512 | | |
| |||
10522 | 10522 | | |
10523 | 10523 | | |
10524 | 10524 | | |
10525 | | - | |
| 10525 | + | |
10526 | 10526 | | |
10527 | 10527 | | |
10528 | 10528 | | |
| |||
10534 | 10534 | | |
10535 | 10535 | | |
10536 | 10536 | | |
| 10537 | + | |
| 10538 | + | |
| 10539 | + | |
| 10540 | + | |
| 10541 | + | |
| 10542 | + | |
| 10543 | + | |
| 10544 | + | |
| 10545 | + | |
| 10546 | + | |
| 10547 | + | |
| 10548 | + | |
| 10549 | + | |
| 10550 | + | |
| 10551 | + | |
| 10552 | + | |
| 10553 | + | |
| 10554 | + | |
| 10555 | + | |
| 10556 | + | |
10537 | 10557 | | |
10538 | 10558 | | |
10539 | 10559 | | |
| |||
0 commit comments