Posts by Fabio Moura • 97 points
6 posts
-
0
votes1
answer206
viewsA: Update with Resource Angularjs
Then, after talking with my friend Savio Freitas, he showed me a light.. said and done, it worked. Resource.update({id:instancia.id}, instancia, function(data){ //callback de successo },…
-
0
votes1
answer206
viewsQ: Update with Resource Angularjs
There is the method Callback to the resource.update in the AngularJS? Type, var instancia = Resource.get({id:1}, function(data){ instancia.$update({id:idModelo}, modeloAtualizado) }); This works,…
-
1
votes2
answers242
viewsA: Circular http dependency found: $http <- Authservice <- Authinterceptor <- $http <- $templateRequest <- $route'
@Onosendai after refactoring with his advice of separation of responsibilities, worked perfectly. Create an Authorizeservice with getToken and setToken, and the Authenticservice that login, logout..…
-
1
votes2
answers242
viewsQ: Circular http dependency found: $http <- Authservice <- Authinterceptor <- $http <- $templateRequest <- $route'
I’m having the http circular dependency problem at the angle. I have seen other questions with similar subject, but the ways I have tried I have not yet managed to solve the problem.. My Code: var…
-
1
votes3
answers1261
viewsA: Self Relationship with Laravel
Good afternoon, you guys, So, Wallace, that’s not exactly what I wanted, but I got it sorted. Gave a great search in the documentation of Laravel, and I ended up seeing that by default the…
-
5
votes3
answers1261
viewsQ: Self Relationship with Laravel
I have the following problem trying to make a self relationship with Laravel 5. I want to make a user registration, where users may have other users linked, creating an autorelationing N x N,…