在哪里决定组件是否应该显示

时间:2016-10-03 09:39:28

标签: angular

这更像是一个概念性问题。我有一个父组件和一个子组件。我没有明确的答案,我应该在哪里决定儿童成分是否可见。

  • 是否在父模板中,例如select * from tablename where (select min(val) from ( select "8am-9am" as val from tablename union all select "9am-10am" as val from tablename union all select "10am-11am" as val from tablename )) in ("8am-9am", "9am-10am", "10am-11am")
  • 或者孩子应该决定因为它应该对它有所了解吗?

0 个答案:

没有答案