سؤال

I want know about Meteor.autorun in meteor. And why they are being Used? What are the features they provided?

هل كانت مفيدة؟

المحلول

Meteor.autorun has been changed to Deps.autorun. Deps is Meteor's dependency tracking system, and Deps.autorun will automatically re-run a function whenever dependencies (session variables, db queries, etc) are changed.

نصائح أخرى

Meteor Deps is a new reactive programming system that is incredibly simple and lightweight. Deps.autorun is a callback function associated with a reactive variable which immediately runs the function passed to it when the variable changes.

Review the Meteor manual for a through explanation http://manual.meteor.com/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top