Ionic Side Menu Example - Ionic framework
Before starting let's know about Ionic framework.
What is Ionic framework?
Ionic is an HTML5 mobile app
development framework targeted at building hybrid mobile apps. Hybrid apps are
essentially small websites running in a browser shell in an app that have
access to the native platform layer. Hybrid apps have many benefits over pure
native apps, specifically in terms of platform support, speed of development,
and access to 3rd party code. Think of Ionic as the front-end UI framework that
handles all of the look and feel and UI interactions your app needs in order to
be compelling. Kind of like “Bootstrap for Native,” but with support for a
broad range of common native mobile components, slick animations, and beautiful
design.
Unlike a responsive framework,
Ionic comes with very native-styled mobile UI elements and layouts that you’d
get with a native SDK on iOS or Android but didn’t really exist before on the
web. Ionic also gives you some opinionated but powerful ways to build mobile
applications that eclipse existing HTML5 development frameworks. Since Ionic is
an HTML5 framework, it needs a native wrapper like Cordova or PhoneGap in order
to run as a native app. We strongly recommend using Cordova proper for your
apps, and the Ionic tools will use Cordova underneath.
visit https://ionicframework.com/getting-started
for more..
Developing Hybrid Apps With Ionic
Let's get started..
Open your terminal or Command Line Interface & run the following command;
$ ionic start myApp sidemenu
In the above command I'm creating the sidemenu starter project. Ionic also provides creating tabs with tab layouts, super with over 14 ready to use page designs, blank a bare starter project with single page & tutorial for a guided starter project visit https://ionicframework.com/docs/cli/starters.html for more
Run project;
Once the project is created successfuly goto the project directory ie., myApp and execute the following command.
$ ionic lab
Ionic provides ionic lab which makes is easy for the developers to test their apps with multiple screens and platform types. It also helps to design User Interface better and flaw free designs. It also provides ionic serve which allows to create a local dev server for app dev/testing which will be launched in the browser. It watches changes if changes are done browser will be automatically reloads new the new build.
Once the project is built successfully the browser will be automatically opened with url http://localhost:8100/ionic-lab .
Subscribe to my YouTube Channel for more tutorials & tech reviews.
Here is the video tutorial
Comments
Post a Comment