Home > UI/UX Development > JavaScript (Page 3)

What is Method Chaining in JavaScript

Hello everyone, in this post we will discuss about following points on Method Chaining What is Method Chaining? Pros and Cons of Method Chaining What is method chaining? Method chaining is technique that allows to write several methods on jQuery selection in sequence in a single code statement. jQuery relies heavily on chaining. This makes it easy

This Article is TAGGED in . Read more

JavaScript Scope

Hello everyone, in this post we will discuss about following points on JavaScript Scope What is scope? What is Global/Local Scope? What is lexical scope? What is scope? In JavaScript, scope determines the accessibility (visibility). Scope refers to the current context of your code. Scopes can be globally or locally defined for both functions and variables. What is Global/Local Scope? In JavaScript there

This Article is TAGGED in . Read more

jQuery: Difference between selectors :first, :first-child and :first-of-type

Definition: :first – use this selector to select first element. This selector select only one single element from all related elements available on the page. :first-child – use this selector to select all first child elements from each parent. :first-of-type – use this selector to select all first child elements, of a specific

This Article is TAGGED in , , , , , . Read more

What is $rootScope in angular js?

An AngularJS application has a single $rootScope. All the other $scope objects are child objects. The properties and methods attached to $rootScope will be available to all the controllers. The following example demonstrates the $rootScope and $scope object. [crayon-6890c1cd68f70310980788/] and the output looks like  [crayon-6890c1cd68f75849936780/] Drop comment if you have any query. :)

This Article is TAGGED in , . Read more

Select all, deselect all in angular material.

Consider we have page status list. [crayon-6890c1cd69276082451412/] then out html looks like as, [crayon-6890c1cd6927b900661902/] and her we have 2 functions for select/deselect all. [crayon-6890c1cd6927e523234652/] If you have any query then drop a comment.:)

This Article is TAGGED in , . Read more

Excel download in asp.net MVC with angular js which fetch data from server side with client side filters.

Consider we are downloading page name, description in excel. 1. we need to declare which field to includes from list for excel download. [crayon-6890c1cd695cd015064578/] In html file. we are declaring 2 buttons. one is hidden. from shown button we will click to hidden button which will apply fiilter on data that comes from

This Article is TAGGED in , , , , , . Read more