No problems with IE8 specifically it seems but regarding AngularJS 1.2.x I have spotted two issues.
The first one is that $templateRequest is not available however one might easily use the $http and $templateCache instead, as follows:
//Returnsapromisewhichgetsthetemplate,either//fromthetemplateparameterorviaarequesttothe//templateurlparameter.vargetTemplate=function(template,templateUrl){vardeferred=$q.defer();if(template){deferred.resolve(template);}elseif(templateUrl){varcached=$templateCache.get(templateUrl);if(cached){deferred.resolve(cached);}else{$http.get(templateUrl).then(function(response){$templateCache.put(templateUrl,response.data);deferred.resolve(response.data);},function(error){deferred.reject(error);});}}else{deferred.reject("No template or templateUrl has been specified.");}returndeferred.promise;};
The other issue is with $animation.enter() and $animation.leave() as they don't return a promise - instead a callback function is passed as the last parameter. One might need to rewrite the animation finish handler in the close function as follows:
// Let angular remove the element and wait for animations to finish.$animate.leave(modalElement,function(){// Resolve the 'closed' promise.closedDeferred.resolve(result);// We can now clean up the scopemodalScope.$destroy();// Unless we null out all of these objects we seem to suffer// from memory leaks, if anyone can explain why then I'd// be very interested to know.inputs.close=null;deferred=null;closeDeferred=null;modal=null;inputs=null;modalElement=null;modalScope=null;});
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: dwmkerr
Did you find out @vdzundza ?
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: unforbidable
No problems with IE8 specifically it seems but regarding AngularJS 1.2.x I have spotted two issues.
The first one is that
$templateRequestis not available however one might easily use the$httpand$templateCacheinstead, as follows:The other issue is with
$animation.enter()and$animation.leave()as they don't return a promise - instead a callback function is passed as the last parameter. One might need to rewrite the animation finish handler in the close function as follows: