This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
@NgAttr bind statements cannot contain dashes if compiling to JS #1576
Open
Description
In Dart, if I have an @Ngattr on a field where the attribute name contains a dash, the binding will not work correctly.
Example:
@Ngattr('foo-bar')
someVariable
will not work when we do bind-foo-far="bindingVariable"
However, simply changing it to @Ngattr('foo') and bind-foo="bindingVariable" makes things work. Note that this error only happens when the Dart code is compiled to JavaScript, so it may be a dart2js issue. The obfuscated error for the above example will be o.someVariable no getter someVariable for o.