Created
November 30, 2012 15:37
-
-
Save gabriel-dehan/4176488 to your computer and use it in GitHub Desktop.
Ember.js Issue with double outlet rendering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yeomantest.ApplicationController = Ember.Controller.extend(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yeomantest.Router = Ember.Router.extend({ | |
enableLogging: true, | |
root: Ember.Route.extend({ | |
contributors: Ember.Route.extend({ | |
route: '/', | |
showContributor: Ember.Route.transitionTo('contributor'), | |
connectOutlets: function(router) { | |
// If I comment this line, the contributors outlet is rendered only once, but if I let it as is, the contributors outlet is rendered twice. | |
router.get('applicationController').connectOutlet('poney', 'poney'); | |
router.get('applicationController').connectOutlet('contributors', Yeomantest.Contributor.all()); | |
} | |
}), | |
// [...] | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yeomantest.PoneyView = Ember.View.extend({ | |
templateName: 'poney' | |
}); | |
Yeomantest.ApplicationView = Ember.View.extend({ | |
templateName: 'application' | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment