30 lines
694 B
JavaScript
30 lines
694 B
JavaScript
|
|
import './InternshipJobs.html';
|
|
|
|
|
|
Tracker.autorun(function() {
|
|
Meteor.subscribe("Internship");
|
|
});
|
|
|
|
Template.InternshipJobs.onCreated(function() {
|
|
//this.internships = Meteor.collections.Internship.find({}, {sort: {name: 1}});
|
|
});
|
|
Template.InternshipJobs.helpers({
|
|
internships: function() {
|
|
//return Template.instance().internships;
|
|
return Meteor.collections.Internship.find({}, {sort: {name: 1}});
|
|
}
|
|
});
|
|
Template.InternshipJobs.events({
|
|
});
|
|
|
|
Template.InternshipJob.onCreated(function() {
|
|
});
|
|
Template.InternshipJob.helpers({
|
|
internship: function() {
|
|
let id = FlowRouter.getParam('_id');
|
|
return Meteor.collections.Internship.findOne(id);
|
|
}
|
|
});
|
|
Template.InternshipJob.events({
|
|
}); |