<img width="467" alt="screen shot 2016-09-27 at 10 57 17 am" src="https://cloud.githubusercontent.com/assets/3154730/18861180/0903fb4e-84a1-11e6-93c0-afab21d7926d.png"> The [debug_info ](https://docs.angularjs.org/guide/production) when enabled in production removes the access to scope while accessing it in this manner `angular.element.child[i].scope()` This will be undefined .