Do they do the same thing ?
Which one should I use inside client?
if ( Meteor.is_client ) {
Meteor.startup(function () {
// my code here
});
}
or
if ( Meteor.is_client ) {
$(function() {
// my code here
});
}
Do they do the same thing ?
Which one should I use inside client?
if ( Meteor.is_client ) {
Meteor.startup(function () {
// my code here
});
}
or
if ( Meteor.is_client ) {
$(function() {
// my code here
});
}