Some questions about using IONIC 4 Network plugin

Hello, there! I’m working with Network plugin and can’t understand how to hide and show div when network status is connected/disconnected. Can someone help me, thanks!