ericclemmons / ericclemmons/grunt-angular-templates

Minification breaks attributes like selected, required and other HTML "reserved" attributes used in conjunction with a directive

Open
#128 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
705
Forks
107
PR merge metrics
No merged PRs in 30d

Description

Lets say we have a directive called `my-dropdown` which publish its current selection through a `selected` attribute. HTML minification breaks the binding.

```

// is minified into

```

I hope this helps others who might be encountering the same kind of issue because this one had me pulling my hair off for a few hours before realizing that this was not my code but the minification :D

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.