Angular Material : alternative of $mdMedia('gt-md') in angular 4 -


i'm trying add sidenav web-application , want responsive , i'm using angular material2 , angular 4 <md-sidenav #sidenav layout="column" class="md-sidenav-left" md-component-id="left" md-is-locked-open="$mdmedia('gt-md')" hide-gt-md opened="true">

the "md-is-locked-open="$mdmedia('gt-md')"" doesn't seem job here , wonder if deprecated or has alternative

it appears you're mixing material 1.x material 2.

here example of how material 2 works:

<app>   <md-sidenav-container>     <md-sidenav align="left" opened="true">drawer content</md-sidenav>     <div class="my-content">main content</div>   </md-sidenav-container> </app> 

check out most recent docs make sure have right format. note: in api calls @input means set item in dom (like align, , opened).


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -