Download and then Print PDF File in AngularJS

Sometime developer need to download PDF file and print that pdf document. Here I have shared a code snippet for download pdf then print that pdf using angularJS. $scope.printPdf = function (uuid){ $http({ url : ‘PDF_URL’, method : ‘GET’, headers : { ‘Content-type’ : ‘application/pdf’ }, responseType : ‘arraybuffer’ }).success(function(data, status, headers, config) { var

Avoid Curly Braces Conflict in Twig and AngularJS

When you will try to implement AngularJS in Twig Templete Engine,  then you will get a problem with curly braces conflict. To avoid this problem you can override the curly braces ({{}}) for AngularJS, with your custom configuration. It is really easy to override the configuration of angularJS. Here is the sample code snipped to override the configuration.   Now

What is JavaScript

JavaScript is the scripting programming language. The official name of JavaScript is ECMAScript. The ECMA organization is developed the JavaScript. JavaScript provide us to add instructive  features in our web page. Let’s write some JavaScript code. <html> <head> <title>My First Java Script Code</title> </head> <body> <script type=”text/javascript”> document.write(‘This is my First Java Script Code’); // This is my first Java Script Code </script> </body> </html>

How to use fadeIn fadeOut effect in jQuery

jQuery is a Java Script libraries which is very lightweight and “write less, do more” .  It”s is full of built in effect, I am gonna show you very common effect “fadeIn” and “fadeOut” in jQuery. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″/> <title>Untitled Document</title> <br/> <script