Template.modal.onRendered(function() {
  this.$('#formModal').modal('show');
  this.$('#formModal').on('hidden.bs.modal', () => Blaze.remove(this.view));
});

Template.modal.helpers({
  data: function() {
    return this.data || {};
  }
});

Template.modal.show = data =>
  Blaze.renderWithData(Template.modal, data, document.body);

Template.modal.showLoginAlert = =>
  Template.modal.show({template: '_loginAlert', title: 'Welcome'});

@@ -358,16 +358,19 @@
 nAlert =
+ ()
  =%3E%0A  Te

Fix Template.modal.showLoginAlert declaration