Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在表中创建主详细信息是 plnkr 代码
但是当我开始为 ng-repeat 放置过滤器时,dom 渲染的行为很奇怪
单击 + 按钮展开行并搜索文本框
难道我做错了什么
我的猜测是,ng-repeat-end不要ng-if一起玩好。如果您将 放置ng-if在<p>元素中,则您的示例正在运行。当然,这具有(不希望的?)效果,包括 DOM 中的详细信息行,尽管它会被隐藏。
ng-repeat-end
ng-if
<p>