You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
feat($compile): Add support for ng-attr with camelcased attributes
- Modify $compile to handle camelcased attributes only with ng-attr to
support SVG fully
- Change to svg to make clear it works
- Ensure the elements and attributes used are valid SVG elements & attributes
- Modify in attempt to use attribute IE is happy with
- Add specific SVG check for IE
- Fix incorrect attribute value used
Modification to re-run tests
- Break up line for jshint
- Fix codestyle
- Replace with prefix regexp
- Added more test cases to catch prefix regexp
- Add documentation in the guide on using underscores
Copy file name to clipboardExpand all lines: docs/content/guide/directive.ngdoc
+9
Original file line number
Diff line number
Diff line change
@@ -174,6 +174,15 @@ For example, we could fix the example above by instead writing:
174
174
</svg>
175
175
```
176
176
177
+
If one wants to modify a camelcased attribute (SVG elements have valid camelcased attributes), such as `viewBox` on the `svg` element, one can use underscores to denote that the attribute to bind to is naturally camelcased.
0 commit comments