Closing loose components on navigation

This commit is contained in:
Bruno Alves de Faria committed 2017-11-23 18:40:58 -02:00
1 parent a6fc444209
commit a9698e6ad2
3 files changed
+35 -4

No files matched your search

+11 -2
View File
@@ -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');
});
}