1. The problem of select
Click to modify, and the select echo is normal. If you continue to click to modify, you will find that the select is emptied or the content to be displayed has disappeared for a while, and the other echoes are still normal. The solution is as follows:
Pseudocode 1:
$scope.editInventoryView=function(acname){
certificateInventoryService.editInventoryView(id).success( function(responseData) {
// echo select
certificateInventoryService.getCydw().success( function(responseData) {
$scope.sites = [
{site : "Google", url : "http://www.google.com"},
{site : "Runoob", url : "http://www.runoob.com"},
{site : "Taobao", url : "http://www.taobao.com"}
];
$scope.selectedSite="http://www.taobao.com";
});
$state.go('certificate.inventory.editView');
});
}
Pseudocode 2:
$scope.editInventoryView=function(acname){
certificateInventoryService.editInventoryView(id).success( function(responseData) {
// echo select
certificateInventoryService.getCydw().success( function(responseData) {
$scope.sites = [
{site : "Google", url : "http://www.google.com"},
{site : "Runoob", url : "http://www.runoob.com"},
{site : "Taobao", url : "http://www.taobao.com"}
];
$scope.selectedSite="http://www.taobao.com";
});
$state.go('certificate.inventory.editView');
});
}