Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2014 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9801726 to your computer and use it in GitHub Desktop.
Save anonymous/9801726 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Ember Hello</title>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-
v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.4.0/ember.min.js"></script>
</head>
<body>
<script type="text/javascript">
Songs=Ember.Application.create(
{"mixmaster":"andy",
"totalreviews":3,
"ready":function(){ }
}
);
Songs.Song=Ember.Object.extend(
{
title: null,
artist: null,
genre: null,
listens: 0
}
);
mySong=Songs.Song.create(
{
title: 'aaa',
artist: 'bbb',
genre: 'ccc'
}
)
</script>
<script type="text/x-handlebars">
{{Songs.totalreviews}}
<script type="text/x-handlebars">
{{mySong.title}}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment