{"id":1150,"date":"2019-02-14T12:31:50","date_gmt":"2019-02-14T07:01:50","guid":{"rendered":"http:\/\/blog.openwebsolutions.in\/?p=1150"},"modified":"2019-02-14T12:31:50","modified_gmt":"2019-02-14T07:01:50","slug":"how-create-side-menu-using-ionic","status":"publish","type":"post","link":"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/","title":{"rendered":"How to create a side menu Using Ionic from blank?"},"content":{"rendered":"<p>Ionic is completely\u00a0an open source SDK for the hybrid mobile app, It uses Cordova plugins to gain access to the host operating system features such as Camera, GPS, etc. We can build our apps, and customize them for Android, iOS, Windows, or modern browsers. The ionic framework is famous for\u00a0its strong command-line interface which helps developers to create projects with a simple command to add Cordova plugins and front-end packages such as enable push notifications, generate app Icons, and Splash screens, etc.<\/p>\n<p>We can install ionic by following this process:<\/p>\n<p>1. npm install -g ionic<br \/>\n2. ionic start test-app(use your folder name) blank<br \/>\n3. cd test-app(use your folder name)<br \/>\n4. ionic serve<\/p>\n<p>In this example, we are implementing a sidemenu using Ionic from blank. Here is a sample code for implementating Sidemenu using Ionic:<\/p>\n<p><strong>home.page.html<\/strong><br \/>\n&lt;ion-header&gt;<br \/>\n&lt;ion-toolbar color=&#8221;primary&#8221;&gt;<br \/>\n&lt;ion-buttons slot=&#8221;start&#8221;&gt;<br \/>\n&lt;ion-menu-toggle&gt;<br \/>\n&lt;ion-button&gt;<br \/>\n&lt;ion-icon slot=&#8221;icon-only&#8221; name=&#8221;menu&#8221;&gt;&lt;\/ion-icon&gt;<br \/>\n&lt;\/ion-button&gt;<br \/>\n&lt;\/ion-menu-toggle&gt;<br \/>\n&lt;\/ion-buttons&gt;<br \/>\n&lt;ion-title start&gt;Ionic Side Menu&lt;\/ion-title&gt;<br \/>\n&lt;\/ion-toolbar&gt;<br \/>\n&lt;\/ion-header&gt;<\/p>\n<p>&lt;ion-content padding&gt;<\/p>\n<p>&lt;\/ion-content&gt;<\/p>\n<p><strong>app.component.html<\/strong><br \/>\n&lt;ion-app&gt;<br \/>\n&lt;ion-menu side=&#8221;start&#8221; menuId=&#8221;main&#8221;&gt;<br \/>\n&lt;ion-header&gt;<br \/>\n&lt;ion-toolbar color=&#8221;primary&#8221;&gt;<br \/>\n&lt;ion-title&gt;Menu&lt;\/ion-title&gt;<br \/>\n&lt;\/ion-toolbar&gt;<br \/>\n&lt;\/ion-header&gt;<br \/>\n&lt;ion-content&gt;<br \/>\n&lt;ion-list&gt;<br \/>\n&lt;ion-item&gt;Menu Item&lt;\/ion-item&gt;<br \/>\n&lt;ion-item&gt;Menu Item&lt;\/ion-item&gt;<br \/>\n&lt;ion-item&gt;Menu Item&lt;\/ion-item&gt;<br \/>\n&lt;ion-item&gt;Menu Item&lt;\/ion-item&gt;<br \/>\n&lt;ion-item&gt;Menu Item&lt;\/ion-item&gt;<br \/>\n&lt;\/ion-list&gt;<br \/>\n&lt;\/ion-content&gt;<br \/>\n&lt;\/ion-menu&gt;<br \/>\n&lt;ion-router-outlet main&gt;&lt;\/ion-router-outlet&gt;<br \/>\n&lt;\/ion-app&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ionic is completely\u00a0an open source SDK for the hybrid mobile app, It uses Cordova plugins to gain access to the host operating system features such as Camera, GPS, etc. We can build our apps, and customize them for Android, iOS, Windows, or modern browsers. The ionic framework is famous for\u00a0its strong command-line interface which helps [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":1165,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[92,46,5],"tags":[43,74,15,14,32],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create a side menu Using Ionic from blank?<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create a side menu Using Ionic from blank?\" \/>\n<meta property=\"og:description\" content=\"Ionic is completely\u00a0an open source SDK for the hybrid mobile app, It uses Cordova plugins to gain access to the host operating system features such as Camera, GPS, etc. We can build our apps, and customize them for Android, iOS, Windows, or modern browsers. The ionic framework is famous for\u00a0its strong command-line interface which helps [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/\" \/>\n<meta property=\"og:site_name\" content=\"Openweb Solutions Blog\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/subhrarocks\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-14T07:01:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/0_0DfSFC_T8pQhN0D_.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@subhrajitdasgu1\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/\",\"name\":\"Openweb Solutions Blog\",\"description\":\"Transforming ideas into reality\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/openwebsolutions.in\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/wp-content\/uploads\/2019\/02\/0_0DfSFC_T8pQhN0D_.jpg\",\"width\":1200,\"height\":630},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/#webpage\",\"url\":\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/\",\"name\":\"How to create a side menu Using Ionic from blank?\",\"isPartOf\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/#primaryimage\"},\"datePublished\":\"2019-02-14T07:01:50+00:00\",\"dateModified\":\"2019-02-14T07:01:50+00:00\",\"author\":{\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/543c0027f07aa3058f55a31f279aadf7\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/openwebsolutions.in\/blog\/how-create-side-menu-using-ionic\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#\/schema\/person\/543c0027f07aa3058f55a31f279aadf7\",\"name\":\"Subhrajit Dasgupta\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/openwebsolutions.in\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7f835b1b0871c424e21567b7cb5afc6b?s=96&r=g\",\"caption\":\"Subhrajit Dasgupta\"},\"sameAs\":[\"https:\/\/www.facebook.com\/subhrarocks\",\"https:\/\/twitter.com\/subhrajitdasgu1\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1150"}],"collection":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/comments?post=1150"}],"version-history":[{"count":7,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1150\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/posts\/1150\/revisions\/1167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media\/1165"}],"wp:attachment":[{"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/media?parent=1150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/categories?post=1150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openwebsolutions.in\/blog\/wp-json\/wp\/v2\/tags?post=1150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}