Skip to content

Instantly share code, notes, and snippets.

@balinterdi balinterdi/router.js
Created Apr 25, 2017

Embed
What would you like to do?
Log in in a modal (lightbox), without the page "underneath" disappearing
Router.map(function() {
this.route('about-us', function() {
this.route('login', { path: '/' }); // or you can even have a different path if you don't mind the URL change
});
});
{{#ember-modal ...}}
{{login-form ...}}
{{/ember-modal}}
{{#link-to 'about-us.login'}}
Log in
{{/link-to}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.