I'm trying to read some angularjs code There is a point at which $ timeout is called without a delay parameter.
dataBinding: () => { this.$timeout(() => { this.selectedRow = null; }); },
What is the purpose of this?
In this context (angular.js), this is a workaround - when you just want to defer your action until the next angular digest cycle (and be sure that this does not happen in the current digest cycle).
If this is your case, you are better off using it $scope.$evalAsync()for this purpose. See http://www.bennadel.com/blog/2605-scope-evalasync-vs-timeout-in-angularjs.htm
$scope.$evalAsync()
If you do not set the delay value, it will be set to 0.
; . this
0?
Source: https://habr.com/ru/post/1620533/More articles:Internal join on LIKE sqldf - inner-joinPaypal: tariff plan + agreement - basic Qs - paypalAngularJS Django CORS API - angularjsHow to clear the most significant bit in a byte? - javaThe value for HADOOP_CONF_DIR from the cluster is yarnOnly I-frames are correctly encoded during H264 video recording - pythonffmpeg: Thumbnail video in original orientation in php - phpFFMPEG thumbnail in php application does not rotate properly - phpPython: rounding error distorts uniform distribution - pythonAutomatically break a slot and maintain alignment to the right - cssAll Articles