Closing loose components on navigation
This commit is contained in:
1 parent
a6fc444209
commit
a9698e6ad2
3 files changed
+35
-4
No files matched your search
@@ -1,5 +1,14 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { Router } from 'meteor/iron:router';
|
||||
|
||||
Router.route('/playground', function() {
|
||||
this.render('componentPlayground');
|
||||
Router.onRun(function() {
|
||||
$(document.body).trigger('ohif.navigated');
|
||||
this.next();
|
||||
});
|
||||
|
||||
if (Meteor.isDevelopment) {
|
||||
Router.route('/playground', function() {
|
||||
this.render('componentPlayground');
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user