I just started with durandal yesterday to try-out android app development. This is my first try in app development also.
I was going through docs using mimosa, and it didn't workout as expected.
Steps covered
- Downloaded starter-kit from durandal.
- execute
mimosa build -mo
and got main-built.js. - Copied all files from assets to the phonegap sample project.
- Included path to main-built.js in index.html of phonegap project.
What all changes I have to make in index.html
currently it looks like
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>PhoneGap</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="phonegap.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="js/main-built.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
</html>
What all changes I need to do to make the starter-kit of durandal as an android app?