Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6a4597b

Browse files
SteveShafferpetebacondarwin
authored andcommitted
docs(guide/Internet Explorer Compatibility): Add ng-attr-type workaround for buttons in IE
Closes #14117 Closes #14119
1 parent d7cb370 commit 6a4597b

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)