Re: [AngularJS] ng-src not update html src after uploading a new image

2015-11-01 Thread Mr. Adam
> > Even if the 2 divs inside the one controller still not changes ... I used > jquery to solve this problem and it's working > > $("#UserPhoto").attr("src", data.result.path); > but I would like to use angular to do this instead of jquery -- You received this message because you are

[AngularJS] ng-src not update html src after uploading a new image

2015-10-31 Thread Mr. Adam
hello every one I have a profile and I'm showing the user photo on it after loading his data from database and the binding is working so good in the same page i upload new image and the variable is changed successfully in the script file but the html still the same can anyone tells me what

Re: [AngularJS] ng-src not update html src after uploading a new image

2015-10-31 Thread fasfsfgs
You are using 2 separate controllers in your page. Although they use the same constructor, each one is a separate instance. Can you use just one controller instance (just one ng-controller on your html)? That should do it for you. On Sat, Oct 31, 2015 at 11:27 PM, Mr. Adam