From 595e5f9d32c9dda8f7b6c0dd5e7e4fba4693eca4 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 20 Mar 2013 17:08:14 +0100 Subject: basic Ember.js setup --- public/js/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 public/js/app.js (limited to 'public/js/app.js') diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 0000000..238f29e --- /dev/null +++ b/public/js/app.js @@ -0,0 +1,16 @@ +App = Ember.Application.create({ + LOG_TRANSITIONS: true, + rootElement: '#container' +}); + + +App.ApplicationRoute = Ember.Route.extend({ + setupController: function(controller) { + // `controller` is the instance of ApplicationController + controller.set('title', "Hello world!"); + } +}); + +App.ApplicationController = Ember.Controller.extend({ + appName: 'My First Example' +}); \ No newline at end of file -- cgit v1.2.3