【发布时间】:2019-03-12 09:28:38
【问题描述】:
这似乎是不可能的。在这两种情况下,无论我使用@HostBinding 还是elementRef.nativeElement.setAttibute(camelCaseAttribute, "true"),camelCaseAttribute 都会在渲染的dom 中变为camelcaseattribute。
我只想使用指令设置 ngDraggable,为什么这不可能? (ngdraggable 不起作用)
非常感谢。
【问题讨论】:
标签: javascript angular