dependency.depend

Client

dependency.depend([fromComputation])

Declares that the current computation (or fromComputation if given) depends on dependency. The computation will be invalidated the next time dependency changes.

If there is no current computation and depend() is called with no arguments, it does nothing and returns false.

Returns true if the computation is a new dependent of dependency rather than an existing one.

Arguments

fromComputation Tracker.Computation

An optional computation declared to depend on dependency instead of the current computation.

doc_Meteor
2016-05-29 17:20:23
Comments
Leave a Comment

Please login to continue.