javascript - Integrate Fancybox with AngularJs -
i getting started angularjs , know if possible integrate fancybox angularjs controller there default fancybox loading animation shown between ajax requests.
using following code nothing happens , there no console errors or messages.
if example code provided in case there alternative solution using fancybox.
thanks.
note: have defined div ng-view inside index.html file.
$scope.search = function () { $.fancybox.showloading(); myapp.query({ query: $scope.query }, function (value, responseheaders) { $.fancybox.hideloading(); }); };
you need create directive integrate fancybox angular code. @ similar lightbox directive created here. can seen in action here.
coming showing loading animation on ajax request, using fancybox not correct not primary purpose. google how ajax spinner angularjs. basic idea implement request , response interceptor , show animation. 1 such example present here
Comments
Post a Comment