angular的$scope的使用

1. 可以在scope中直接使用

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

  

 

  

posted @ 2017-09-22 19:54  果感  阅读(880)  评论(0编辑  收藏  举报