Inherit is very easy, as i mentioned in :http://baiduhix.blogspot.co.uk/2015/09/angularjs-controller-inherit.html
In this post i will show how to override parent functions
In your parent controller, you must define your function and properties like that: ($scope.xx will always overridable)
"showData" and "username" are overridable properties and functions. However "loadApps" is not a overridable function.
"showData" and "username" are public properties and functions.
"loadApps" is inner anonymous function (you can treat it as a private function if you use java).
You may want to override functions when you are doing unittest.