autocomplete jquery element.autocomplete is not a function

Js import the files to my project, also try to do it from the official site url but not working.

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

It seems strange that this happens in all the examples I've seen of this function are identical to what I do, but the error persists for me.
I add directives and factories to work it in angularjs + ionic