问题标签 [angular2-inputs]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
31 问题
0
投票
1
回答
346
浏览
angular - @HostBinding 初始 @Input 值被忽略
我有一个指令可以帮助向各种元素添加切换效果。
切换时它工作正常,但初始绑定值被忽略:
HTML 将反映该初始值,但该类仅在以编程方式或通过鼠标切换后应用。@HostBinding
开启时是否有奇怪的交互@Input
?