Estrutura padrão de requirejs + emberjs

define ‘app’, [ ‘app/controllers/application_controller’, ‘app/views/application_view’, ‘app/store’], (AppController, AppView, Store) -> App = App.create(rootElement: “#app”) App.referReadiness() App.ApplicationController = AppController App.ApplicationView = AppView App.Store = Store App.Route.map -> @route “home”, path: “/” …

Continuar lendo