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
Post a Comment