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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -