Working on LungoJs? Know the Basics
June 10, 2016
Not all the ways to develop an App are optimized. Lungo offers you a robust API so you can have complete control of everything happening in your App. It’s expensive to develop an App for every Platform & the arrival of tablets and Smart TVs hasn’t helped. However, Lungo suits all the devices creating a unique & amazing UX.
Below are the Dependencies of aLungoApp’s body:
<link rel="stylesheet" href="components/lungo.brownie/lungo.css">
<link rel="stylesheet" href="components/lungo.icon/lungo.icon.css">
<link rel="stylesheet" href="components/lungo.brownie/lungo.theme.css">
Main container of your UI Components in the App is <section>. The <article>must be placed inside your section and all sections & articles must contain an unique ID.
To initialize Lungojs there is a init function available. We have to query like ths:
Lungo supports Loading of resources both synchronously and asynchronously on init. Here’s how it is:
Load resources synchronously on init :
//Load resource on app init
Load resources asynchronously on init :
<section id="loader" data-transition="">
<article id="art1" class="active">
<a href="#main" data-router="section" data-async="section_to_load.html">
Go to section
There is also the ‘isMobile()’ method to determine if the current environment is a mobile environment or not.
Also, share your thoughts below.