GruntJS in Simple English Part2

Why we use grunt ? What are the things grunt done ? Validate HTML/JS/CSS Compress CSS and JS Compile the CoffeeScript , TypeScript (mainly nowadays used for Angular2)..etc LESS to CSS Grunt Architecture ? Using package.json file we can described the Gruntjs file configurations. In…

GruntJS in simple English part 1

Introduction:- GruntJs is used for Task Runner. What is Task runner why we use? In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you’ve configured it…

Javascript Understanding Variable Scope and closures

Hi All, I learned from some Youtube video some of my friends share to me and personal thank to Daniel Zabinskas First of all thanks to sitepoint 1. Declaring Variables 2. Hiding global Variables with local variables of the same name 3. Scope Chain-I When…

Backbonejs how to pass the parameter in this.model.destroy()

In template:-   <a class=”btn btn-danger” id=”delete”> Delete </a> In Views:-   events: { “click #delete”: “deleteConfirm” }, deleteConfirm: function() { if (!confirm(“Want to delete ?”)) { return; } else { this.delete(); } }, delete: function() { this.model.destroy({ data: $.param({ address: add }), success: function()…

BackboneJS Adding current page(View) refresh

Add icon in template:- 1 2 3 4 5 6 <li> <a id=”refreshPage”> //Adding refresh icon <i class=”fa fa-refresh”></i> </a> </li> Add functionality in model:- 1 2 3 4 5 //Adding refresh functionality $(‘#refreshPage’).click(function(e){ e.preventDefault(); Backbone.history.loadUrl(Backbone.history.fragment); });

What is JSON?

e abbreviation JSON stands for JavaScript Object Notation.It describes a way to format data that can be stored in files, or sent over the Internet.The format is almost exactly the same as the syntax for defining an object literally in JavaScript, but with a few exceptions: You cannot…

Firebug and Logging

Having a fancy JavaScript debugger is great, but sometimes the fastest way to find bugs is just to dump as much information to the console as you can. Firebug gives you a set of powerful logging functions that you can call from your own web…

1 2 3