[AngularJS] Re: Cannot post, $http service

2015-12-22 Thread Garwan50
Here's the plunker version : http://plnkr.co/edit/xEiGyhswnx5pVwiI7tC0?p=preview -- 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 angular+unsubscr...@googlegroups.co

[AngularJS] Re: Cannot post, $http service

2015-12-22 Thread Garwan50
Hi! Yeah fiddle doesn't work as good as plunker it was mostly to share the code. I tried adding a "/" and an absolute path but nothing, i just have Cannot POST /register.php when plunker will be up again, i'll upload my code on it. thanks. -- You received this message because you are subscri

[AngularJS] Cannot post, $http service

2015-12-22 Thread Garwan50
Hey, i try to use both angularjs and PHP in order to make a registration app. However, every http post request i make send me a code 404 not found. I upload my code onto jsfiddle because plunker is down. https://jsfiddle.net/L40x1950/ images : http://puu.sh/m4FVO/3e607fd137.png the content of

[AngularJS] Re: updating the view

2015-12-20 Thread Garwan50
Ok i get it, by reading my code. Thanks, problem solved! -- 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 angular+unsubscr...@googlegroups.com. To post to this grou

[AngularJS] Re: updating the view

2015-12-19 Thread Garwan50
Hey ! By using you plunker but by ajusting it so its clear to me, it works just fine. But, i don't really understand what i did wrong ? Was it my javascript or my html ? Thanks again, i'm glad it works ! -- You received this message because you are subscribed to the Google Groups "AngularJ

[AngularJS] Re: updating the view

2015-12-19 Thread Garwan50
Hey, thanks for the link, i didn't know I could manage my code like that, i'll keep that in mind. http://plnkr.co/edit/6gLNasmJzqSDrnUgQrnQ?p=preview i made a plunker, like your code but in a way i could understand it better, but it doesn't work, and I don't know why. I didn't use var movie

[AngularJS] Re: updating the view

2015-12-19 Thread Garwan50
Hi, thanks for the answer! I will use plunker from now on, i didn't know how to use it. I corrected the promise in a promise problem, thanks. However, i don't really understand what is wrong with my code, is it the structure that messes with the variables ? Because i never saw a structure lik

[AngularJS] Re: Cannot read property 'then' of undefined

2015-12-19 Thread Garwan50
Thanks, corrected ! -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.

[AngularJS] updating the view

2015-12-18 Thread Garwan50
Hi, i asked for help earlier and got an answer, but since i have a different issue i'm posting a new thread. I fetch json data in my controller, and i want to show those data in my view. In movie.html i type a movie id in an input, and with ng-change it load the getMovie function. app.factor

[AngularJS] Re: Cannot read property 'then' of undefined

2015-12-18 Thread Garwan50
Ok thanks, i thought $scope was deprecated. Thanks for helping! -- 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 angular+unsubscr...@googlegroups.com. To post to t

[AngularJS] Re: Cannot read property 'then' of undefined

2015-12-18 Thread Garwan50
Adding a new parameter on my function this.getMovie and then specify a variable works, i don't know if it's correct thought! app.controller('MovieCtrl', ['$http', '$log', 'tmdb', function($http, $log, tmdb){ this.movie = {}; this.getMovie = function(id, vari) { tmdb.movie(id).then(functi

[AngularJS] Re: Cannot read property 'then' of undefined

2015-12-18 Thread Garwan50
er object. Currently you are > returning nothing, thtas why its undefinied > > i've made an example, hopefully you will understand it. (But really, i > think theres only missing in your factory the > > return defferred.promise;) > > http://plnkr.co/edit/WbfIwE0hX8AToub

[AngularJS] Cannot read property 'then' of undefined

2015-12-17 Thread Garwan50
Hi, i'm trying to communicate with themoviedb API. I have to use promise but clearly i dont know how to use them. I want to set a property of my controller with the data i get. I use a factory service : app.factory('tmdb', ['$http', '$q', '$log', function($http, $q, $log) { return { movi