Thanks a lot for your comment Thomas. Good question why I use <div 
class="ng-binding>. 

>From me comes:

<div ng-view></view> and in the routed html with <div>{{json.svg}}</div}

Out of that AngularJS makes: 

<!-- ngView:  -->
<div class="ng-scope" ng-view="">
    <div class="ng-binding ng-scope">
        <svg height="30" width="200"><text x="0" y="15" fill="red">Hello 
World !</text></svg>
    </div>
</div>

Is there a way to tell AngularJS to avoid ng-binding? 


On Friday, August 8, 2014 4:42:12 AM UTC+2, ThomasBurleson wrote:
>
> Why are you using `<div class="ng-binding>` ? 
>
> The ngBind attribute tells Angular to replace the text content of the 
> specified HTML element with the value of a given expression, and to update 
> the text content when the value of that expression changes.
>
> So this means you <svg /> is overwritten. Simply remove the ng-bind.
> On Wednesday, August 6, 2014 10:29:30 AM UTC-5, kacha haan wrote:
>>
>> Hi all,
>>
>> I obtain a pure SVG from my backend and based to my Routing include it 
>> into <div ng-view></div>. 
>>
>> The result as shown in debugger is: 
>>
>> <html>
>> <body>
>> <div class="ng-scope" ng-view="">
>>     <div class="ng-binding ng-scope">
>>        <svg height="30" width="200"><text x="0" y="15" fill="red">Hello 
>> World !</text></svg>
>>     </div>
>> </div>
>> </body>
>> </html>
>>
>> But instead the browser shows me a rendered SVG it is only shown as text. 
>>
>> Does anyone know why the SVG is not rendered?
>>
>>

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