Thought Experiment: Partially-Applying Ng-Template References In Angular 7.2.13

added by JavaScript Kicks
5/1/2019 12:00:26 AM

195 Views

Yesterday, I ran a sanity check that nested Ng-Template references maintain lexical binding in Angular 7.2.13. It was nice to see that my "closure"-like mental model was sufficient. But, it got me thinking: what if an Ng-Template reference needed to consume a variable that wasn't in its lexical scope?


0 comments