GruntJS in Simple English Part4

How we use grunt in Javascript? We used many ways for grunt in Javascript some of the main features are below. Validating Javascript using – jshint Compressing Javascript using – Uglify Cleaning folders and files using – Contrib-Clean (We Checked already in previous part) We…

GruntJS in Simple English Part3

Creating the package.json file first Enter the name, version, development dependencies Install grunt locally using this command [npm install grunt –save-dev] After installed grunt one folder created in root folder called node_modules,Inside that grunt installed locally After grunt installed you can install the grunt clean…

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()…