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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

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