Skip to content

Instantly share code, notes, and snippets.

View ilucin's full-sized avatar

Ivan Lučin ilucin

View GitHub Profile
@ilucin
ilucin / branched-routing.md
Last active August 19, 2016 23:30 — forked from janvarljen/branched-routing.md
Ember branched routing

The problem

Applications often need to expose a part of the app in different context without breaking the current context. The simplified example would be the "settings" modal. You want to be able to open the settings modal from everywhere in you app without losing the current context.

Let's say we have a really simple app:

Router.map(function() {
  this.route('projects', {}, function() {
    this.route('dashboard');