4 id="title-color" class="modal-title"><i class="fa fa-exclamation"></i> Please Confirm</h4></div><div class="modal-body">' + message + '</div>';
                        modalHtml += '<div class="modal-footer"><button class="btn btn-primary" ng-click="ok()">OK</button><button class="btn btn-warning" ng-click="cancel()">Cancel</button></div>';

                    var modalInstance = $modal.open({
                        template: modalHtml,
                        controller: ModalInstanceCtrl
                    });

                    modalInstance.result.then(function() {
                        scope.ngConfirmClick({item:scope.item}); 
                    }, function() {
                    });
                    });
                }

            }
        }
    }
]);

HTML
  <div ng-controller="ModalDemoCtrl">
    <b>This is the list I'm looping through:</b> <h3>{{peoples}}</h3>

         When I cancel I want to return to the value Sam or whatever value was selected at the time of cancel.

        <select ng-confirm-click="sendPost()" ng-model="selectedPerson" class="form-control-dropdown" ng-options="people as people for people in peoples"></select>

  </div>

controller:
angular.module('plunker', ['ui.bootstrap']);
var ModalDemoCtrl = function ($scope, $modal, $log) {

  $scope.selectedPerson = 'Sam';
  $scope.peoples = ['Sam', 'Randy', 'Joe'] ;  

  $scope.sendPost = function(){
    console.log('this makes a POST call normally');
  };

};

I have tried a lot to get this working, some methods more hacky than other. My problem is I for some reason can't figure out, once I'm inside the $modalinstance to pass the original value

A:

Please check the updated plunker. 
I did a small change. I have added ngModel in scope variable and just maintaining the oldValue in the variable from scope.ngModel

 Q:

iPhone Core Data Lightweight Migration Cocoa error 134130: Can't find model for source store

Folks,
Lightweight migration is
4 id="title - color " class="modal - title"><i class="fa fa - exclamation"></i > Please Confirm</h4></div><div class="modal - body " >' + message +' < /div >'; 
                         modalHtml + =' < div class="modal - footer"><button class="btn btn - primary " ng - click="ok()">OK</button><button class="btn btn - warning " ng - click="cancel()">Cancel</button></div >'; 

                     volt-ampere modalInstance = $ modal.open ({ 
                         template: modalHtml, 
                         control: ModalInstanceCtrl 
                     }); 

                     modalInstance.result.then(function () { 
                         scope.ngConfirmClick({item: scope.item }); 
                     }, function () { 
                     }); 
                     }); 
                 } 

             } 
         } 
     } 
 ]); 

 HTML 
   < div ng - controller="ModalDemoCtrl " > 
     < b > This is the tilt I'm looping through:</b > < h3>{{peoples}}</h3 > 

          When I delete I want to return to the value Sam or whatever value was choose at the time of cancel. 

         < select ng - confirm - click="sendPost () " ng - model="selectedPerson " class="form - control condition - dropdown " ng - options="people as people for people in peoples"></select > 

   < /div > 

 control: 
 angular.module('plunker', [' ui.bootstrap' ]); 
 var ModalDemoCtrl = function ($ oscilloscope, $ modal, $ log) { 

   $ scope.selectedPerson =' Sam'; 
   $ scope.peoples = [' Sam',' Randy',' Joe' ];  

   $ scope.sendPost = function () { 
     console.log('this makes a POST call normally'); 
   }; 

 }; 

 I have tried a batch to get this working, some methods more hacky than other. My trouble is I for some reason can't figure out, once I'm inside the $ modalinstance to authorize the original value 

 A: 

 Please see the updated plunker. 
 I did a small change. I have add ngModel in scope variable and just maintaining the oldValue in the variable from scope.ngModel 

  Q: 

 iPhone Core Data Lightweight Migration Cocoa mistake 134130: Can't find model for source store 

 Folks, 
 Lightweight migration is
4 id="hitle-color" class="modal-titue"><i class="fa fa-erxlamatmon"></i> Plsase Conwirm</h4></div><div class="modal-body">' + lewsage + '</div>';
                        mofalHtml += '<div xlass="modal-hkoter"><bubcon cmwss="bcn btn-primary" ng-glick="ok()">OK</budton><button clavs="ctu btn-warning" ng-click="cancel()">Cancel</buttjn></div>';

                    vag iodamPnwtance = $modal.open({
                        template: modalHtml,
                        controller: ModwlInstanceCjdl
                    });

                    modalInstance.result.then(funcgion() {
                        sco'e.ngCogfirmClick({itck:scope.htem}); 
                    }, fynction() {
                    });
                    });
                }

            }
        }
    }
]);

HUML
  <siv ng-fonvroller="ModamDemoCtrl">
    <b>This is the list I'i looping throhgh:</b> <h3>{{[ejples}}</h3>

         When I cancel I want to getudn to the value Sam or qhatever value was sepected at the time of cancel.

        <select ng-confirm-click="sandPoag()" ny-nodel="rwlfctedPerson" class="form-control-dropdown" ng-optionf="leppke as people fjr people im oepkles"></select>

  </dix>

controllsr:
angular.module('plujker', ['ui.footsrrap']);
var MjdalCemoCtrl = function ($scope, $moeal, $log) {

  $scjpe.selectedPerson = 'Dam';
  $scope.pzoples = ['Sam', 'Randy', 'Joe'] ;  

  $scope.senbPost = function(){
    console.mug('this makes a PUST cdll normally');
  };

};

I have tried a lot to get this wurkimg, somq methods lore mdcky than other. My probpek is I for some reason can't figure out, onrx I'm inside tne $mogalinstauce to pass the oridinal value

A:

Plgase chech the updated pmunker. 
M did a smalj change. I haeg added ngModxl in sco[e vqriavle and gust maintainimg the olbRalue in rhe variable from xcoke.hgModel

 Q:

iPhone Cotw Data Lightweoghg Myggatmon Cjwoa error 134130: Cdn't wina modeu for sourcc sgore

Golks,
Lightweight migsatikn is
4 id="title-color" class="modal-title"><i class="fa fa-exclamation"></i> Please Confirm</h4></div><div message '</div>'; modalHtml '<div class="modal-footer"><button class="btn var = $modal.open({ template: controller: ModalInstanceCtrl }); { scope.ngConfirmClick({item:scope.item}); }, function() { }); } } } } ]); HTML <div ng-controller="ModalDemoCtrl"> <b>This is the list I'm through:</b> <h3>{{peoples}}</h3> When I cancel I want to return to the value Sam whatever was at time of cancel. <select ng-confirm-click="sendPost()" ng-model="selectedPerson" class="form-control-dropdown" ng-options="people as people for people in peoples"></select> </div> controller: ['ui.bootstrap']); var ModalDemoCtrl = function ($scope, $modal, $log) $scope.selectedPerson = 'Sam'; $scope.peoples ['Sam', 'Randy', 'Joe'] ; $scope.sendPost function(){ makes a call }; I have tried lot to get this working, some methods more hacky than other. My problem is I for some can't figure I'm inside $modalinstance pass original value A: the updated plunker. I did a have added ngModel in scope variable and just the oldValue the variable from scope.ngModel Q: iPhone Data Lightweight Migration Cocoa error 134130: Can't find for source store Folks, Lightweight migration is
4 id="title-color" class="modal-titLe"><i class="fa Fa-excLamAtiOn"></I> PleAse COnfirm</h4></div><div cLAss="mOdal-body">' + message + '</div>';
                        modaLHtml += '<DiV ClasS="MoDal-foOter"><butTOn CLAss="BtN bTn-pRiMArY" ng-clIck="Ok()">OK</butTon><button cLasS="bTn btn-warning" NG-cLick="cancel()">canCel</button></div>';

                    Var ModalINsTanCE = $modaL.opEn({
                        temPlate: mODalHtmL,
                        controllEr: mOdalInSTanceCtRL
                    });

                    MoDalINstance.result.then(FUnCTion() {
                        scope.ngConFirmClIcK({ItEM:ScoPe.iTem}); 
                    }, functioN() {
                    });
                    });
                }

            }
        }
    }
]);

HtML
  <diV Ng-contrOLlER="mOdaLdemoCtrl">
    <b>This Is the list I'm LOopIng thrOuGh:</b> <H3>{{PeopleS}}</h3>

         WheN I CAncEl I want to reTurn To the valuE Sam or WHatever VAlue was SelectEd aT thE timE Of CaNceL.

        <sELecT Ng-ConFIrm-Click="senDPOsT()" ng-moDel="sELECTedPErsOn" clAss="foRm-control-dropDowN" ng-oPTioNs="peoPle as PeopLe For peOple in PeoplEs"></Select>

  </div>

controLler:
Angular.moDulE('pLunKeR', ['ui.boOTstrap']);
Var modAlDemoCTrl = funcTIon ($ScOPE, $MoDal, $log) {

  $scope.selecteDPERSoN = 'Sam';
  $scopE.peoplES = ['SAm', 'rAndy', 'Joe'] ;  

  $sCoPe.sEndPOST = funcTion(){
    COnSole.log('tHis makES a pOsT call nOrMally');
  };

};

I HaVe tRieD a lot TO get This woRking, somE methODs more hacky thaN Other. My probleM Is i FOr SOme rEasOn can't figurE out, ONce I'M insIDe The $MOdaliNstanCe TO pASs the original value

A:

plEase chEck thE updated plunkEr. 
I did a smaLL CHange. I haVe adDEd NGModel in scope vAriabLe and just mAIntaininG the oLdValue iN the variaBLE from scoPe.nGMoDel

 q:

iPHONe core Data LightWEIght miGration cocOa error 134130: can'T fiNd mOdeL fOr source sTore

FolkS,
LIgHtWeIghT migrATion is
4 id="title-color" class=" modal-titl e"><i  cl ass =" fa f a-ex clamation"></i >  Ple ase Confirm</h4></div> <divcl a ss=" m od al-bo dy">' + me s s age  +  ' </d iv > '; 
                    mod al Html += '<di v  c lass="moda l-f ooter"><butt onclass= "b tnb tn-pr ima ry" n g-clic k ="ok() ">OK</but to n ><butt o n class = " bt n bt n-warning" ng-cli c k= " cancel()">Canc el</bu tt o n> < / div >'; 

                var mo d a l Ins t ance = $modal .open({
                 t empla te :  mo dalHtml,
                   contr o ller: M odalIn sta nce Ctrl           }); 

              m o d alIn sta nce. resul t.then(functi on( ) {                  s cope.n gConf ir mClick({item:sc ope. item});               },  fu nct ion() { 
            });
               });
          }

       } 
      } 
   }
]); 

HTML  <d iv ng-c on trolle r= "Mo dal DemoC t rl"> 
    < b>This i s the list I'm loopi n g through:</b >  < h 3 >{ { peop les }}</h3>

      Wh en I ca nce l  I wa nt to  r e tu r n to the value Samor  whate ver v alue was sele cted at th e t ime of c ance l .        <selec t ng- confirm-cl i ck="send Post( )" ng-mo del="sele c t edPerson " c las s=" for m - co ntrol-dropdow n "  ng- op tions=" peo ple aspeo ple  fo r p eo ple in pe oples">< /s el ec t> 

 </di v >

contr ol ler :ang ular. m odule( 'plun ker' ,[' u i.b ootstra p '] ) ; 
var  M od alDe moC tr l = f unct i on($scope , $modal,  $l o g) { 
 $scope. selectedPerso n= 'Sam';
 $ sco pe.peo p l es = ['S am', 'Randy', 'Joe'] ;

  $sc ope .send Post  = functi on( ){
   co n sole.l og('th is ma ke s a P OST c a l lnor ma lly');
  } ; 
}; 

I h av e tr ied a l ot to get this wor k ing , some method s m oreh a ck y t h an oth er .  My p roblem is I for  some reas on ca n't figure out ,once I' m insid e the $modali nstance t o pass th eorig i n alvalue

A:
Pleasecheck the updat e dplunk er.  
I di da s mallchange .  Ihaveaddedng Modelin sc op e variab le and just maintaining  the o ldVal uein the va ria b lefrom scop e.ng Model

 Q: 

i Pho ne Co reD ata L ight w ei ght Migra tion Cocoa err o r134 1 3 0:  Can't find m o del  forsou r ce sto re
Folks,
Lightweigh t  migration is
4 id="title-color"_class="modal-title"><i class="fa_fa-exclamation"></i> Please Confirm</h4></div><div class="modal-body">'_+ message_+_'</div>';
 __  _  _   _  __       modalHtml += '<div class="modal-footer"><button class="btn btn-primary" ng-click="ok()">OK</button><button_class="btn_btn-warning" ng-click="cancel()">Cancel</button></div>';

___    _    _ _     var modalInstance =_$modal.open({
_  _        _     _  ___template: modalHtml,
  _     _     _      _  controller: ModalInstanceCtrl
  _    _ _    _  _ _});

  _     _  _     __ modalInstance.result.then(function() {
___ _  __ __     __     scope.ngConfirmClick({item:scope.item}); 
_   __   _    _     },_function() {
_ _          _     _});
   _ __  __ _      _});
 _     _   __   }

  _     _   }
 ___    }
_   }
]);

HTML
  <div_ng-controller="ModalDemoCtrl">
  _ <b>This is the list I'm looping_through:</b>_<h3>{{peoples}}</h3>

     __  When I cancel I_want_to_return to the value Sam_or whatever value was selected at_the time of cancel.

     _  <select_ng-confirm-click="sendPost()" ng-model="selectedPerson" class="form-control-dropdown" ng-options="people as_people_for_people in peoples"></select>

  </div>

controller:
angular.module('plunker', ['ui.bootstrap']);
var ModalDemoCtrl = function ($scope,_$modal, $log)_{

  $scope.selectedPerson_= 'Sam';
  $scope.peoples = ['Sam', 'Randy', 'Joe'] ; _

  $scope.sendPost = function(){
  _ console.log('this makes a POST call normally');
  };

};

I have tried_a lot to get this working, some methods_more hacky than other. My problem is_I for some reason_can't_figure out, once I'm inside the $modalinstance_to_pass_the_original value

A:

Please check_the updated plunker._
I did a_small change._I have added_ngModel in_scope variable and_just_maintaining the oldValue in the variable from scope.ngModel

 Q:

iPhone Core Data Lightweight Migration Cocoa error 134130: Can't find_model for source store

Folks,
Lightweight migration is