3 ms·
I always feel like scope inheritance problems are overstated. It's weird, but it's weird in the exact way that JS prototypical inheritance is weird. So it's i
by wmil 11y ago
I always feel like scope inheritance problems are overstated.
It's weird, but it's weird in the exact way that JS prototypical inheritance is weird. So it's important to learn.
Anyways the fix is simple, always initialize your variables before you use them. Either in the controller or using an ng-init.