angularjs - ng-show is not working within HAML template on Internet Explorer 7 -
i have following minimum failure case:
%span.add-on - if planned_date.blank? %i.icon-calendar - else if successful %i.icon-calendar.foo {{showpopup}} .foo-popup(ng-show='showpopup') show succesful
and directive:
mymodule.directive.foodirective = -> restrict: 'c' link: (scope, element, attrs) -> scope.showpopup = true myapp.mymodule.directive 'foo', [mymodule.directive.foodirective]
this behaves expected in firefox, safari, chrome, opera, , ie8+, displaying styled popup words "show succesfull underneath icon, , words if succesfull above it, interpolating showpopup
true
. however, in ie7 displays "if successful" above icon, , interpolates showpopup
true
, not display popup (same behaviour in ie10 ie7 standards mode , browser mode: ie7).
what's causing this? , how can fix (absolutely minimal use case) ie 7?
thanks!
you might find answer in https://github.com/angular/angular.js/issues/4562.
i met same problem , can use ng-if instead of ng-show ng-show can do.
see document http://docs.angularjs.org/api/ng.directive:ngif .
it work in it7.
Comments
Post a Comment