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
The <md-switch> element is totally inert / empty. However, if we change it to <md-checkbox> (which is not included in directives), an md-checkbox is rendered out. It seems that the annotations on MdCheckbox are overwriting the annotations on MdSwitch when the latter extends the former.
This used to work before the components were converted to TypeScript, making it even more clear that this has something to do with TS decorators.
Say I have a directive
MdCheckbox
and then create a child class for
MdSwitch
, as the functionality is identical:If we then have a demo app:
The
<md-switch>
element is totally inert / empty. However, if we change it to<md-checkbox>
(which is not included indirectives
), anmd-checkbox
is rendered out. It seems that the annotations onMdCheckbox
are overwriting the annotations onMdSwitch
when the latter extends the former.This used to work before the components were converted to TypeScript, making it even more clear that this has something to do with TS decorators.
FYI @vsavkin @rkirov
The text was updated successfully, but these errors were encountered: