Why the js defined in angularjs v1.5 controller.js calls display undefined in the browser console

as shown in the figure, my use scenario is to close a Modal pop-up window on the current page of the APP embedded H5 page when the Android physical key is clicked. Debug the undefined, and then I use the vConsole call to have the same effect. So I think it"s not because of the Android code, but because of the angularjs framework, it can"t be called directly with appCloseModal, there may be class names, namespaces and so on.

is there a front-end god who knows how to solve it

Mar.06,2021

Why not $scope.appCloseModal () {.} ?

Menu