Generally, it's not best practice to put curly braces into your index. Substitute with ng-bind and ng-style whenever you can.
On Thursday, March 6, 2014 10:06:13 AM UTC-5, Ranjith Ramachandra wrote: > > This a duplicate of > http://stackoverflow.com/questions/22227820/angularjs-and-internet-explorer-10-curly-braces-substitution-is-not-happening > > > up vote0down > votefavorite<http://stackoverflow.com/questions/22227820/angularjs-and-internet-explorer-10-curly-braces-substitution-is-not-happening#> > > I have an angularjs app which works on all real browsers. The problem is > with internet explorer 10. > > I have done a lot of stuff like this in the app > > <div style="font-size: {{data.font_size}}px"></div> > > While this works fine on firefox, safari and chrome, it simply does not > work with internet explorer. > > To illustrate the problem I have created a jsfiddle: > http://jsfiddle.net/U3pVM/3328/ Try it with chrome and internet explorer. > Font size is 30 in chrome but is not in IE. > > I would be glad if someone could tell me why that would be the case and if > there is anything I can do other than reimplement the whole thing. > > Even if I were reimplement the app to have no double curly braces in style > attribute, ng-src still needs to have curly braces. > -- 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/groups/opt_out.
