Hi Martin,

how does your backend source code look like?

kacha

On Wednesday, August 22, 2012 2:21:13 PM UTC+2, Michael Trim wrote:
>
> Hi,
>
> I am loading a restful JSON service that contains an SVG document.
>
> When I try to bind the SVG to the template it renders the SVG as a string 
> in the page. Is it possible to do this without recourse to another library 
> for rendering the SVG?
>
> I am only really interested in this working in latest browsers (chrome) 
> not concerned about backwards compatibility at this point.
>
> *Controller:*
>
> function GetSVGCtrl($scope, appModelService, GetSVG) {
>   var  data = GetMap.query(function(){
>   
>   $scope.SVG = data.Collection[0].SVGAsset;
>   
>    console.log($scope.SVG)
>   })
>
> }
>
> console output = <svg version="1.1" id="Layer_1" x="0px" y="0px" 
> width="2"...etc etc...............
>
> *Template (in partials): *
>
> <div>{{SVG}}</div>
>
> thanks in advance
>
> Michael
>
>

-- 
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