Skip to content

Instantly share code, notes, and snippets.

View kraftwer1's full-sized avatar

kraftwer1

  • Zurich, Switzerland
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<h2>List of articles:</h2>
<ul>
{{#each article in controller}}
<li><a {{action showArticle article href=true}}>{{article.title}}</a></li>
{{/each}}
</ul>
Mobile.Router = Em.Router.extend
enableLogging: true
location: "history"
root: Em.Route.extend
index: Em.Route.extend
route: "/"
articles: Em.Route.extend
# Example URL: /articles/501b7878b19fb834f900005d
Mobile.Store.createRecord
Mobile.ArticleModel
title: "Es ist wieder soweit"