javascript get element by directive code example
Example: angular.element(...).scope(...).testeFunc is not a function
<input type="file" name="file" accept="image/*" onchange="angular.element(this).scope().selectFileForUpload(this.files)" class="form-control input-bordered" required>