title: How can you detect network connectivity in Angular 2?
body: <p>I am trying to write a component that will detect whether the app is online or offline so it can trigger another event. Is there a built-in function that can be leveraged?</p>