【发布时间】:2020-02-16 19:41:24
【问题描述】:
我将此代码用于侧导航:https://stackblitz.com/edit/mat-sidenav-responsive?file=app%2Fsidenav-responsive-example.html
它使用模板引用变量 #sidenav
<a href="#" (click)="sidenav.toggle()">Vodafone Airtime</a>
我想知道这个 .toggle() 函数来自哪里,它是 sidenav 对象的属性?在哪里可以查看所有这些属性?
【问题讨论】:
标签: angular angular-material angular-flex-layout