Try using RequireJS. This is what I do to avoid similar problems with the wrong order of files being loaded: https://github.com/backslashed/room24/blob/master/app/loader.js
I wonder why something like this isn't yet available in Angular. Yes, I do know we have loader.js but meh. On Monday, 21 April 2014 12:49:17 UTC+1, Diwan Oli M wrote: > > > > angularjs document says after jquery load u can import angularjs pluging , > but my case if i load the same way i am getting 'On' is selected is not a > function . if i load angularjs before jquery i didnt use the jquery method > in my custom directory , i am geting below error . please any one help me > > Error: iElement.autocomplete is not a function > @http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:91 > nodeLinkFn@http://localhost:7001/pcps/static/js/plugins/angular.js:6312 > compositeLinkFn@http://localhost:7001/pcps/static/js/plugins/angular.js:5722 > compositeLinkFn@http://localhost:7001/pcps/static/js/plugins/angular.js:5725 > compositeLinkFn@http://localhost:7001/pcps/static/js/plugins/angular.js:5725 > publicLinkFn@http://localhost:7001/pcps/static/js/plugins/angular.js:5627 > boundTranscludeFn@http://localhost:7001/pcps/static/js/plugins/angular.js:5741 > controllersBoundTransclude@http://localhost:7001/pcps/static/js/plugins/angular.js:6332 > ngRepeatAction@http://localhost:7001/pcps/static/js/plugins/angular.js:19684 > $watchCollectionAction@http://localhost:7001/pcps/static/js/plugins/angular.js:11828 > Scope.prototype.$digest@http://localhost:7001/pcps/static/js/plugins/angular.js:11930 > Scope.prototype.$apply@http://localhost:7001/pcps/static/js/plugins/angular.js:12179 > bootstrap/doBootstrap/ > <http://localhost:7001/pcps/static/js/plugins/angular.js:12179bootstrap/doBootstrap/><@http://localhost:7001/pcps/static/js/plugins/angular.js:1341 > invoke@http://localhost:7001/pcps/static/js/plugins/angular.js:3762 > bootstrap/doBootstrap@http://localhost:7001/pcps/static/js/plugins/angular.js:1340 > > <http://localhost:7001/pcps/static/js/plugins/angular.js:3762bootstrap/doBootstrap@http://localhost:7001/pcps/static/js/plugins/angular.js:1340> > bootstrap@http://localhost:7001/pcps/static/js/plugins/angular.js:1353 > @http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:191 > ._Deferred/e.resolveWith@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > ._Deferred/e.done@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > e.prototype.ready@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > e.prototype.init@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > e@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > @http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:190 > .globalEval/<@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > .globalEval@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > bl@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > .each@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > .domManip@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:3 > .append@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:3 > .registerPlugin/</$.fn[n]@http://localhost:7001/pcps/static/js/plugins/jquery.livequery.js:178 > .html@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:3 > .registerPlugin/</$.fn[n]@http://localhost:7001/pcps/static/js/plugins/jquery.livequery.js:178 > $.fireAjax/showResponse@http://localhost:7001/pcps/static/js/plugins/appframework-jquery.js:91 > $.fireAjax/<.success@http://localhost:7001/pcps/static/js/plugins/appframework-jquery.js:77 > ._Deferred/e.resolveWith@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:2 > w@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:4 > .send/d@http://localhost:7001/pcps/static/js/libs/jquery-1.6.4.min.js:4 > > <input class="ng-pristine ng-valid" ng-model="componentCd" name="fiocodes" > ng-auto-complete="" ui-items="fioPhaseAction.fioCodes"> > > I am import the plugin file below like this : > <script type="text/javascript" src="<c:url > value="/static/js/plugins/angular.js"/>"></script> > <script type="text/javascript" src="<c:url > value="/static/js/plugins/angular-route.js"/>"></script> > <script type="text/javascript" src="<c:url > value="/static/js/libs/jquery-1.6.4.min.js"/>"></script> > <script type="text/javascript" src="<c:url > value="/static/js/plugins/jquery-ui-1.8.16.custom.min.js"/>"></script> > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
