Grails

Vertical Labels with Google Chart API

While working with Google charts, we usually face issues with long labels on the horizontal axis. The chart displays well, however the X-axis labels are not completely visible and displays the numbers like this: 24/3.. 25/3.. 26/3.. 27/3.. 28/3.. 30/3.. 31/3.. instead of 24/3/2006, 25/3/2006, 6/3/2006, 27/3/2006, 28/3/2006, 30/3/2006, 31/3/2006 The usual practice that we all apply is […]

Mansi Arora
Mansi Arora
Read

Node.js

Form Validations using AngularJs

There are lots of ways to validate a web page like HTML5 validations, but why not do it in a better interactive way by using AngularJS. AngularJS provides us with several form properties for validation, which helps in providing instant feedback in case validation is violated.     $valid: return true when input field is valid. […]

Sandeep Kumar
Sandeep Kumar
Read

Technology

JavaScript : String.slice() vs String.substring() vs String.substr()

In this blog, we will discuss about few methods that are used in JavaScript for partial string extraction. You can also see my blog specific on Arrays which are used in JavaScript. The following methods are :- slice() substring() substr() All these methods extracts parts of a string and returns the extracted parts in a new string. […]

Vivek Garg
Vivek Garg
Read

Technology

JavaScript : Array.splice() vs Array.slice()

1. The splice() method returns the removed item(s) in an array and slice() method returns the selected element(s) in an array, as a new array object. 2. The splice() method changes the original array and slice() method doesn’t change the original array. 3. The splice() method can take n number of arguments: Argument 1: Index, […]

Vivek Garg
Vivek Garg
Read

Node.js

Highlighting links in text using “linky” filter

At times we come across few cases where we need to differentiate the links amongst the plain text. Angular provide us with a very useful filter named : “linky” which help us to do so. With the help of linky filter we can detect links from text and show them differently .  Linky takes text and produces HTML by […]

Rubi Saini
Rubi Saini
Read

Node.js

High performance find query using lean() in mongoose

Using lean() in mongoose provides high performance queries.

Sakshi Tyagi
Sakshi Tyagi
Read

Node.js

‘resolve’ property in angular

Now a days , angular ui-router is being used actively for maintaining routes in angular applications. In my current project, I came across a use case in which I had to perform certain checks before executing certain route mapping. For example lets consider the most basic situation in which we want to directly show dashboard […]

Rubi Saini
Rubi Saini
Read

Technology

How to get name initials as an image?

While making an application, showing user’s image is a very common use case. Gone were the days when we used to show anonymous image in case a person’s profile image or display image is not present.

Sakshi Tyagi
Sakshi Tyagi
Read

Android

Debugging Javascript on Android using Chrome

Nowadays almost all applications that we develop are made mobile friendly and a lot of times, everything works perfectly on desktop browsers but not on mobile. Even if we know it is some javascript that is not working as expected, it becomes quite difficult to narrow down on what is causing problem. As we cannot […]

Vivek Sachdeva
Vivek Sachdeva
Read
Services