https://jsfiddle.net/es1L24nh/
Check fiddle.
The image of the first comment does not load, but the after the first
comment all the other profile pictures will load successfully. How does
that comes. In the console log the right path is showing up.
--
You received this message because you
>
> 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
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
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
Hello,
in my controller i'm replacing img urls with urls i get from a database in
html fragments that i also get from a database
example
div
ptest/p
img src=old/source/image
div
becomes
div
ptest/p
img src=new/source/image
div
the new source for the image url is constructed in the
ng-bind-html does not compile the html template, it just sanitizes and renders
it. So, directives like ng-src won’t work. You might want to use ngInclude or a
router for this functionality instead.
On Apr 14, 2015, at 12:14 PM, Marco marco.sto...@gmail.com wrote:
Hello,
in my controller
Are you trying to replace complete blocks of html? Then yes, use ng-include
as Caitlin recommends. For ng-src is interpolated not, bound to a
variable... the proper way to change the source in your case should be:
img ng-src={{imagevar}}
This is advantageous because you can change, parts of
OK, thanks for the reply, I will check these options
--
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,
Hi,
It works for me on unbuntu/firefox31.0, same as chrome.
maybe some sort of corrupted cache ?
On Mon, Aug 18, 2014 at 10:00 PM, Zoltan Szalai defaultd...@gmail.com
wrote:
Hi,
Any idea why the image doesn't show up in ubuntu/firefox31.0?
http://plnkr.co/edit/r6wK2an76dxYft9wSzsd
It
Hi,
I just wanted to add an image to my app.
As advised, I used the ng-src directive:
img ng-src={{app.imgBig}} alt=lorem ipsum height=100 width=200
title=lorem ipsum /
It works fine on most browsers but it doesn't on ie8.
The image is not loaded as instead of adding the absolute url to the
It seems inconsistent that the value of this directive must be surrounded
with {{ }}.
Should it expect an Angular expression the way ng-include does?
--
R. Mark Volkmann
Object Computing, Inc.
--
You received this message because you are subscribed to the Google Groups
AngularJS group.
To
11 matches
Mail list logo