javascript - Replace the angularjs pop-up and change to jquery -
hi in kind of unique situation. have code in angularjs , have given task join html in jquery. jquery page opens when click on particular link. checked code , find out calls modalservice.showmodal , passing 2 name. 1 template , 1 controller name. now, have done checked function defination is. there commented out if controller name empty go forward.
the function this-
self.showmodal = function(options) { // create deferred we'll resolve when modal ready. var deferred = $q.defer(); // validate input parameters. var controllername = options.controller; if (!controllername) { //deferred.reject("no controller has been specified."); //return deferred.promise; }
but if nothing happening. how can this. please me on this.
edit: have page in angularjs , html. there link in page pop-up. now, want change pop-up jquery pop-up. dont know how add it. here link have call jquery table has controller pass it.
here function of link in controller
// link click $scope.inventary = function () { if ($scope.inmdata1 != "") { modalservice.showmodal({ templateurl: "chartpagepopup/details.html", controller: "details" }).then(function (modal) { modal.close.then(function (result) { }); }); } else alert($scope.waitingalert); };
Comments
Post a Comment