Developing Ionic Apps with MobileFirst 7.1
How to use Ionic with IBM's mobile development framework.
Join the DZone community and get the full member experience.Join For Free
time for the last in my series of blog posts on hybrid development with mobilefirst 7.1 . obviously i’ve got more to say about mobilefirst, but this last post will complete the picture so to speak about the development is like in 7.1. i want to give a special shout out to my coworkers carlos santana and karl bishop. they helped quite a bit with the first two blog posts and this one in particular is thanks to carlos. both are smart folks who make my job of telling yall stuff quite a bit easier. with that in mind, before going further, be sure to read my introductory post ( getting started with mobile development and ibm mobilefirst 7.1 ) and my follow up ( developing hybrid mobile apps with ibm mobilefirst 7.1 ).
for this post, i’m going to speak specifically about
development and mobilefirst. in general, you can follow much the same path as what i described in the
last blog entry
. basically make a new mobilefirst project, make a new ionic project, and then copy over the www assets. but you will also want to make sure you include ionic’s keyboard plugin:
. finally, you want to include the code i mentioned that makes use of wlcommoninit. remember, this is the “mobilefirst is ready to go” event.
in general, that would work fine, but there’s a way to make it even easier. as i mentioned, my buddy carlos has been working on this issue and has already made something that will help quite a bit – a set of ionic templates: https://github.com/csantanapr/mfp-ionic-templates . these templates make it easier to work with mobilefirst and ionic. assuming you’ve checked out the repo, you can simply provide the path to the repo when creating a new mobilefirst hybrid project:
once you’ve created the project, you then need to initialize ionic library values and other settings. luckily carlos made this easy – just run:
. this will read in the dependencies defined in package.json
here’s an incredibly cool animated gif of the blank starter in action.
and there you have it. let me know what you think in the comments below!
Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.