Sometime we might just need to know the git url where we are updating all our day to day work. It might be the reason you wanted to share the url with your colleague. Below command can be useful in order to get git url Everytime your pushed your update you will also see the… Continue reading How to get git origin url from the local repository
Author: Santosh Kumar Shah
I am JavaScript developer.
Debounce in JavaScript
Debounce in JavaScript generally states that you want to delay a function in particular event. Events such as mouse move, click etc. Lets take an example:- you have an event of mouse move on a button. When you move your mouse over the button it will fire the event many times. To avoid this we… Continue reading Debounce in JavaScript
Multiple bracket function in JavaScript
Multiple bracket function in JavaScript are tricky to understand. The bracket generally resemble a function without bracket it would be a variable. So, if you want multiple bracket function you would need to return multiple function in it. For eg: look at the code below. Now what if we need to perform same operation with… Continue reading Multiple bracket function in JavaScript
Call, Apply and Bind in JavaScript
Call, Apply and Bind in JavaScript are very powerful function that allows you to borrow object properties and method. To understand this I am going to put a very simple example to output same result using all three function. (call, apply and bind). Let us look at the code below:- In the above code we… Continue reading Call, Apply and Bind in JavaScript
JavaScript regular expression to validate URL
Create custom filter using Array Prototype
As a JavaScript developer most of us are pretty familiar with filter method of JavaScript. Like the code below. In the above function we have simply inbuilt filter method which we make to filter out array num. Now what if we need a customizable filter function that accept a function just like the filter method.… Continue reading Create custom filter using Array Prototype
Angular detect if the page is changed
Validate URL for image with valid extension
This function will allow you to validate any image url that ends with either jpeg, jpg, gif or png.
Angular Lifecycle Hooks
In this article, we will know about the lifecycle of Angular components. Since, in Angular, a component is the main building block of the application, it is very important to understand the lifecycle processing steps of the components so that we can understand the execution of the component in our applications. Lifecycle Hooks/Methods In Angular,… Continue reading Angular Lifecycle Hooks
setValue() And patchValue() In Angular 2
From angular two with reactive form its very easy to update the form controls value via these two method. Both perform the same operation of setting the value of form control. Updating Form controls from a model is very easy and flexible in Reactive Form API of Angular v2. So, setValue() and patchValue() are the… Continue reading setValue() And patchValue() In Angular 2