Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

App Sub Applications #2201

Closed
samccone opened this issue Jan 15, 2015 · 7 comments
Closed

App Sub Applications #2201

samccone opened this issue Jan 15, 2015 · 7 comments

Comments

@samccone
Copy link
Member

Application objects should be able to have "sub" applications that are started and destroyed on parent app state change.

Mn.Application.extend({
  applications: {
    "myApp1": {
      class: MyApp1
      options: {}
    },
    "myApp2": MyApp2,
    "myApp3": {
      getClass: function(){},
      getOptions: {}
    }
  }
})

Each application has a name to make it simple to interact with it from within the parent app.

Related #2200

@samccone samccone added the major label Jan 15, 2015
@paulfalgout
Copy link
Member

Also related #2026

@jasonLaster
Copy link
Member

Ooh pretty This reminds me of a pattern wires has w/ modules, just much nicer. Curious to see how this plays with routes and things.

@JSteunou
Copy link
Contributor

I can live with a removal of Mn.Module with this sub app feature :)

@ahumphreys87 ahumphreys87 added this to the v3.0.0 milestone Apr 12, 2015
@jasonLaster jasonLaster modified the milestones: v3.0.0, v3.x Aug 18, 2015
@rafde
Copy link
Member

rafde commented Sep 7, 2016

Modules gone.

@rafde rafde closed this as completed Sep 7, 2016
@paulfalgout
Copy link
Member

While I dunno that this needs to be a part of Mn, I dunno how it related to modules?

@rafde
Copy link
Member

rafde commented Sep 7, 2016

I thought you needed Modules to have SubApps
Can re-open

@paulfalgout
Copy link
Member

I think this is suggesting using Applications or some new object as sub apps. unrelated to modules... kind of like #2026 which suggests removing modules and adding subapps. Either way I think it safe to close both of these for now. Hopefully, for the moment at least, we can focus more on doing less better, rather than adding stuff.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

7 participants