0
안녕하십니까, 5 초 후에 applyParameters 함수를 수행하고 싶습니다. 그러나 현재의 구문은 그렇게하지 않습니다.지연 기능이있는 각도 함수
어떻게하는 지에 대한 아이디어가 있으십니까?
//Add and update categories
var categories = homeData['categories'];
for(var catIndex in categories){
var category = categories[catIndex];
$scope.addCategory(category);
}
$scope.search.text = homeData['keyword'];
//Pick first company in the results
$scope.updateSelectedCompany(response.data[0]);
//populate parameters if passed in after 1 second delay
$timeout($scope.applyParameters($routeParams.param1), 5000);