angular的$scope的使用

1. 可以在scope中直接使用

// 监听日期变化
			$scope.$watch('vaFilter.startEffectiveDate', function(newDate, oldDate, scope){
				if (!angular.isUndefined(newDate)) {
					$scope.fromDate = newDate;
				}
			});

  

  

原文地址:https://www.cnblogs.com/nelson-hu/p/7576859.html