ember-addons / bootstrap-for-ember

Bootstrap for Ember.js
http://ember-addons.github.io/bootstrap-for-ember
Apache License 2.0
704 stars 103 forks source link

[Modal] load link to modal #123

Open BenjaminHorn opened 10 years ago

BenjaminHorn commented 10 years ago

I want to bind the modal to links to show the content - where the link points - in a modal. The idea, that every time when a route visited the function "activate" runs. I placed here the the modal's init. The problem: If i close the modal, and click again the same link, the activate function wont run again, and the modal doesnt initializate, only if i click an another link and back again. I made a simple JsBin setup http://emberjs.jsbin.com/EveQOke/29/edit to demonstrate the problem. Click "Settings", close the modal, then again "Settings", then "Dashboard" and "Settings" again.

Maybe the whole concept is wrong an there is a better way to do this.