【发布时间】:2018-04-28 01:39:22
【问题描述】:
在反应中,我可以像这样任意传递道具:
function SomeComponent(props) {
const {takeOutProp, ...restOfProps} = props;
return <div {...restOfProps}/>;
}
如何在 Angular 中做同样的事情?
--
更具体地说,我想编写一个自定义下拉组件并将道具向下传递给一个选择框。
【问题讨论】:
-
你不只是使用 react wink
-
@OrthoHomeDefense 这就是我告诉我的团队的,但不幸的是这不是我的决定
标签: javascript angular reactjs typescript