Skip to content

Instantly share code, notes, and snippets.

@gutenye
Forked from anonymous/gist:9801726
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gutenye/9801880 to your computer and use it in GitHub Desktop.
Save gutenye/9801880 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
}
);
Songs.mySong=Songs.Song.create(
{
title: 'aaa',
artist: 'bbb',
genre: 'ccc'
}
)
</script>
<script type="text/x-handlebars">
{{Songs.totalreviews}}
{{Songs.mySong.title}}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment