How to call window.matchMedia() correctly in an Angular 2 app
<p>Once <code>window</code> object shouldn't be accessed directly in an Angular application, so you can have a chance to run the app outside the browser, how can I call <code>window.matchMedia()</code> in an "Angular way"?</p>