#### hidden控制显示与隐藏 ``` //html <div [hidden]="temp">显示</div> <div [hidden]="!temp">隐藏</div> //ts temp = true; ``` 这样第一个div是显示的,第二个是隐藏的。