Skip to content

Instantly share code, notes, and snippets.

@balinterdi
Created April 25, 2017 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balinterdi/e9031aa69d25403a26f5e188f5a491df to your computer and use it in GitHub Desktop.
Save balinterdi/e9031aa69d25403a26f5e188f5a491df to your computer and use it in GitHub Desktop.
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