angular icon indicating copy to clipboard operation
angular copied to clipboard

refactor(compiler): save/restore view when listeners read references

Open devversion opened this issue 2 years ago • 0 comments

Port of @alxhub's fix that only was pushed to the signals branch.


Previously, the template pipeline save/restore view logic only added the save/restore operation in listeners inside embedded views. However, this operation is also needed if local refs are accessed within a listener body.

This commit updates the logic to detect more accurately whether save/restore is needed.

devversion avatar Jun 23 '23 13:06 devversion