summaryrefslogtreecommitdiff
path: root/public/js/app.js
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-20 17:08:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-04-03 22:09:33 +0200
commit595e5f9d32c9dda8f7b6c0dd5e7e4fba4693eca4 (patch)
treee2e4c5c463536b2295e722b98020ce6378482640 /public/js/app.js
parentedf06bf6f7d4f20d5a9145a5bbf8db409fe6ab1b (diff)
basic Ember.js setup
Diffstat (limited to 'public/js/app.js')
-rw-r--r--public/js/app.js16
1 files changed, 16 insertions, 0 deletions
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