Skip to content

Instantly share code, notes, and snippets.

@marcioj
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save marcioj/ee223d7ee1136deb76d7 to your computer and use it in GitHub Desktop.

Select an option

Save marcioj/ee223d7ee1136deb76d7 to your computer and use it in GitHub Desktop.
App = Ember.Application.create();
App.Router.map(function() {
// put your routes here
});
App.IndexRoute = Ember.Route.extend({
model: function() {
return "Hello world";
}
});
<script type="text/x-handlebars">
<h2>Welcome to Ember.js</h2>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="index">
{{model}}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment