Skip to content

Commit e7c51c1

Browse files
SteveShaffercudasteve
authored andcommitted
docs(guide/Internet Explorer Compatibility): Add ng-attr-type workaround for buttons in IE
Resolves angular#14117
1 parent 76f47d5 commit e7c51c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/content/guide/ie.ngdoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ browsers, but it is up to you to test and decide whether it works for your parti
2828
To ensure your Angular application works on IE please consider:
2929

3030
1. Use `ng-style` tags instead of `style="{{ someCss }}"`. The latter works in Chrome and Firefox
31-
but does not work in Internet Explorer <= 11 (the most recent version at time of writing).
31+
but does not work in Internet Explorer <= 11 (the most recent version at time of writing).
32+
2. For the `type` attribute of buttons, use `ng-attr-type` tags instead of
33+
`type="{{ someExpression }}"`. If using the latter, Internet Explorer overwrites the expression
34+
with `type="submit"` before Angular has a chance to interpolate it.

0 commit comments

Comments
 (0)