Answer by Lakshman Prasad for Angularjs - Function is undefined in child scope even though it is in the parent scope - http://stackoverflow.com/questio...