Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Ionic Framework - ionic-side-menus directive in ionic module

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 726
    Comment on it

    Hello Readers,

    Side menus widely uses in mobile application and it provides a user friendly interface. Ionic framework provides an excellent directive which is easy to implement. In this post we will learn implementation of side menus in our app.


    ion-side-menus is the parent container of ionic side menu. ion-side-menu and ion-side-menu-content is the child of ion-side-menus. Where ion-side-menu is used to show content in right or left side i.e side="right" and side="left" and ion-side-menu-content is used to show content.


    <ion-side-menus> <!-- Parent container -->  
        <ion-side-menu-content> <!-- To show content of Side Menu --> 
        <ion-side-menu side="left"> <!-- Left Side Menu --> 
        <ion-side-menu side="right"> <!-- Right Side Menu -->

    Ionic Framework provides an ionic side menu template so we can create ionic side menu application through CLI mentioned below:

    $ ionic start sideMenuApp sidemenu

    After creating project in www folder index.html is the root html file and browse, login, menu, playlist, playlists, search are html files contains in template folder. menu.html file contains side-menu code.


    <ion-side-menus enable-menu-with-back-views="false">
        <ion-nav-bar class="bar-stable">
          <ion-nav-buttons side="left">
            <button class="button button-icon button-clear ion-navicon" menu-toggle="left">
        <ion-nav-view name="menuContent"></ion-nav-view>
      <ion-side-menu side="left">
        <ion-header-bar class="bar-stable">
          <h1 class="title">Left</h1>
            <ion-item menu-close ng-click="login()">
            <ion-item menu-close href="#/app/search">
            <ion-item menu-close href="#/app/browse">
            <ion-item menu-close href="#/app/playlists">

    In the above code we have a side menu on left side. Now you can build an application with sliding out side menu and it is works on iOS, Android and window application.

    Hope this will help you :)

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: