Has Meteor syntax changed from version 0.8 to version 1.0?

Asked

Viewed 69 times

0

Among the many changes in the Meteor Framework 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 the syntax has changed? And what else has changed?

  • 1

    This may help: https://github.com/meteor/blob/devel/History.md Ai has all the history of changes until a)

  • It seems there have been API changes yes: https://github.com/meteor/blob/devel/History.md#api-changes

1 answer

1


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

Before version 1.0 the definition of helpers was like this:

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

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

With the change it was like this:

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

Also hear change in created, rendered and destroyed:

What used to be like this:

Template.leaderboard.created = function(){

}

Above 1.0 was like this:

Template.leaderboard.onCreated({

});

Follow the changes that occurred here:

https://github.com/meteor/meteor/blob/devel/History.md#api-changes

this link may help you:

https://forums.meteor.com/t/about-oncreated-onrendered-ondestroyed-and-helpers/165

Browser other questions tagged

You are not signed in. Login or sign up in order to post.