How can I add a second sidemenu
? I have the normal sidemenu
on the left side which works great. Now I want to add a second sidemenu
with filter options.
相关问题
- Angular RxJS mergeMap types
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Ignore Typescript errors in Webpack-dev-server
- How to update placeholder text in ng2-smart-table?
相关文章
- angular脚手架在ie9+下兼容问题
- angular 前端项目 build 报错 "Cannot find module 'le
- Cannot find module 'redux' 怎么解决?
- Angular Material Stepper causes mat-formfield to v
- After upgrade to Angular 9 cannot find variable in
- is there any difference between import { Observabl
- Suppress “Circular dependency detected” suppress w
- How can you get current positional information abo
Just like you can read in MenuToggle from Ionic2 docs you can do it by first creating two
ion-menu
in yourapp.html
(or where you want to define the second menu)Please notice the
side="left"
andside="right"
attributes in theion-menu
element. We'll use that later to know which menu should be opened (theid
attribute could be also used in the same way).Then, in your page, add to each
menuToggle
which menu should be opened by assigning to it theside
attribute we defined earlier (or theid
if you prefer to do so).You can find a working plnuker here.
UPDATE:
I've done that in this plunker. Now, the
HomePage
has the menu on the right defined there in that hmtl file.Please notice the
content
variable in the<ion-content>
element. Like you can read in Ionic docs: