Stopping Angularjs from executing next line -


how tell angular stop process next lines when meet condition in if below.

code

if(!$scope.add.partcode){     var alertpopup = $ionicpopup.alert({       title: 'kartu stok ...',       template: 'silakan pilih part code terlebih dahulu.'     });     $ionicloading.hide();    }else {     var partcode = $scope.add.partcode.part_no;   }   ...   ...   ... 


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -