var BoxCtrl = function($scope, $element) {
}
var str = BoxCtrl.toString().replace(/\s/g, '').split('){')[0].split('(')[1]
var arr = str.split(',')
if (~arr.indexOf('$scope')) {
console.log('$scope')
}
if (~arr.indexOf('$element')) {
console.log('$element')
}