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 the url only, like if 
you know it's always the same file name but the directory changes:

<img ng-src="{{current_directory}}/image.png">



On Tuesday, April 14, 2015 at 2:20:48 PM UTC-6, Marco wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to