Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Start fleshing out views.

  • Loading branch information...
commit 7433e444c5aec0c406df5687f81995525f944dc6 1 parent f22fabe
@cmeiklejohn cmeiklejohn authored
View
5 assets/javascripts/app/app.js
@@ -9,3 +9,8 @@ require('models');
require('controllers');
require('templates');
require('views');
+
+// TODO: Not required by ember-latest.
+$(document).ready(function() {
+ GiddyUp.initialize(GiddyUp.Router.create());
+});
View
10 assets/javascripts/app/router.js
@@ -1,7 +1,15 @@
GiddyUp.Router = Ember.Router.extend({
root: Ember.Route.extend({
index: Ember.Route.extend({
- route: '/'
+ route: '/',
+ redirectsTo: 'scorecards'
+ }),
+
+ scorecards: Ember.Route.extend({
+ route: '/scorecards',
+ connectOutlets: function(router) {
+ router.get('applicationController').connectOutlet('scorecards');
+ }
})
})
});
View
3  assets/javascripts/app/templates/application.hbs
@@ -0,0 +1,3 @@
+Welcome!
+
+{{outlet}}
View
1  assets/javascripts/app/templates/scorecards.hbs
@@ -0,0 +1 @@
+Scorecards!
View
4 assets/javascripts/app/views.js
@@ -1,3 +1,7 @@
GiddyUp.ApplicationView = Ember.View.extend({
templateName: 'application'
});
+
+GiddyUp.ScorecardsView = Ember.View.extend({
+ templateName: 'scorecards'
+});
Please sign in to comment.
Something went wrong with that request. Please try again.