Summary
In this chapter, we learned how to build our own custom reactive object. We learned about Tracker.Dependency.depend()
and Tracker.Dependency.changed()
and saw how reactive dependencies have their own computational objects, which can be used to stop its reactive behavior and prevent running at start.
To dig deeper, take a look at the documentation for the Tracker
package and see detailed property descriptions for the Tracker.Computation
object at the following resources:
You can find this chapter's code examples at https://www.packtpub.com/books/content/support/17713 or on GitHub at https://github.com/frozeman/book-building-single-page-web-apps-with-meteor/tree/chapter9.
Now that we have finalized our blog, we will take a look at how to deploy our app on servers in the next chapter.