I have been trying to get my head wrapped around Ember.JS and have gone through tons of documentation and threads, but I get endless mixed tones and different directions from each of them. I am trying to put a simple widget together which would have a:
- Nav
- Body
- Footer
I started out with very simple application, and I am imagining that I would have a parent view and within that parent view I would children/nested views. For example, I would have:
Nav View
Body View
Footer View
I just don't know how to implement nested views. This is the code I have: var App = Ember.Application.create();
App.ApplicationController = Ember.Controller.extend();
App.ApplicationView = Ember.View.extend({
templateName: 'application'
});
App.aplicationController = Ember.Controller.extend();
App.Router = Ember.Router.extend({
root: Ember.Route.extend({
index: Ember.Route.extend({
route: '/'
})
})
})
App.initialize();
I would highly appreciate any help with this please. Thank you.