I am looking to implement a nested function within another function in Angular 4 for closure.
However, when attempting the code below, I encounter an error stating "cannot find name innerFn"
outerFn(){
let a = "hello";
innerFn(){
console.log(a);
}
}
Any assistance on this issue would be greatly appreciated. Thank you.