ng-feathers
ng-feathers copied to clipboard
error after compile
After compiling this giving error in the provider

and the error ocore in your file, for some reason
Well, looks like angular is not available, when trying to register the ng-feathers provider. Do you have a chance to change the order of your script execution?
is being stuck before the bower, including angularjs
Sorry, I didn't get that. In what way is Bower involved in your execution order? Can you show me the Snippet of your html embeds?
It's something nno your provider, because I changed the code to factory and it worked 100%
angular
.module('ngFeathers', [])
.factory('$feathers', function() {
var endpoint = urlAPIAuxiliarNode;
var socketOpts = null;
var useSocket = true;
var authStorage = window.localStorage;
var app = feathers()
// .configure(feathers.hooks())
if (useSocket) {
app.socket = io(endpoint, socketOpts)
app.configure(feathers.socketio(app.socket))
} else {
app.configure(feathers.rest(endpoint).jquery(window.jQuery))
}
app.configure(feathers.authentication({
storage: authStorage
}))
return app
});
This doesn't make that much sense. I never experienced that kind of behaviour. What version of AngularJS are you using? And do you have some special libraries in place, which might mess around with the Angular internals?
My libraries are normal and nothing that would affect this.
My angularjs version: "angular": "1.6.9"