Posts by Denis C de Azevedo • 137 points
4 posts
-
1
votes1
answer721
viewsA: Block pages with Angularjs login with asynchronous call
I did not test, but it would be something close to that (it gives you a good start): app.service('Session', function($http) { this.getUserAuthenticated = function() { return…
angularjsanswered Denis C de Azevedo 137 -
0
votes1
answer170
viewsA: Using Resolve in Angularjs
Actually what’s wrong are the parameters of $routeChangeSuccess, they must be: $rootScope.$on("$routeChangeSuccess", function(event, current, previous) { That’s why the log shows this object: Object…
angularjsanswered Denis C de Azevedo 137 -
0
votes2
answers4984
viewsA: How to insert taken data from a JSON file and put into a list with Angularjs
Actually your problem is the incorrect syntax of your JSON. This one is right: [ {"nome": "Feijao", "preco": 2.95}, {"nome": "Arroz", "preco":6.58}, {"nome":"Biscoito", "preco":7.60} ] Here’s the…
-
0
votes2
answers160
viewsA: What is the difference between open and opendir calls on UNIX?
As far as I know open opens all file types, except directories. Already opendir returns DIR* from the open directory that is passed to readdir() to read its contents.…