Has the Meteor's syntax changed from version 0.8 to version 1.0?

0

Among the various changes in the Framework Meteor from version 0.8 to version 1.0, I know that it no longer uses Meteorite, and that the template engine has changed from Handlebars to Blaze. But has the syntax changed? And what has changed?

    
asked by anonymous 13.06.2015 / 21:06

1 answer

1

Yes the syntax of the Meteor has changed in some points, for example:

Before version 1.0 the helpers definition was as follows:

Template.leaderboard.player = function(){
    // code goes here
}

Template.leaderboard.goals = function(){
    // code goes here
}

With the change it looks like this:

Template.leaderboard.helpers({
   'players': function(){
      // code goes here
    },
    'goals': function(){
      // code goes here
    }
});

You also hear change in created, rendered and destroyed:

What used to be this:

Template.leaderboard.created = function(){

}

Above 1.0 looks like this:

Template.leaderboard.onCreated({

});

Follow the changes that occurred here at this link:

link

this link might help tb:

link

    
08.04.2016 / 02:54