angular closure function #angular #closure
Channel: Vijay Chauhan
Date: 2021-05-05

Demo: https://stackblitz.com/edit/angular-closure-function?file=src%2Fapp%2Fapp.component.ts
A closure is the combination of a function enclosed with references to its surrounding state . In other words, a closure gives you access to an outer function's scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time