I am dealing with headers and footers in angularjs. I have different header for mobile view and webview. How do I conditionally handle headers in angularjs depending on the window width.
Right now I am doing that with jquery as follows:
if (window.matchMedia('(max-width: 768px)').matches) {
//hidewebheader;
//show mobileheader;
} else {
//hidemobileheader;
//showwebheader;
}
How do i achieve this in angularjs. There is one file of header.html which has 2 different markups for web and mobile headers.