// Capital letter - 1
// small letter - 2
// number - 3
// spl char - 4
let str = "l. lorem ip 123";
let str1 = "skdfh skdfh alsjdhf KJHGH24 ksdhfksfh";
let arrayStr = str1.split(" ");
let obj = {}
function checkCase(ch) {
if (!isNaN(ch *...
Read More ⟶
In this another small article I am going to explain what is different between JIT and AoT in Angular and which one is better.
Just In Time (JIT) and Ahead of Time (AoT) is Angular compiler which runs in Angular background
Just in Time (JIT)
Inefficent for...
Read More ⟶
JavaScript Algorithm to find all possible anagram of a string.
let genAnagrams = (word, n, anagram = '', anagrams = []) => {
word = word.toUpperCase();
if(anagram) {
anagrams.push(anagram)
}
if(!word) {
return
}
...
Read More ⟶
First, let’s understand a few key terms and I will also include references to articles if you need a deeper understanding of these concepts:
Ivy — It is the code name for Angular’s next-generation compilation and rendering pipeline. Read here and for...
Read More ⟶
I am just writing a small code that will help fellow developers to pass an object after the dialog is closed.
<!--Dialog Compoenent / popup -->
<div [innerHTML]="data"></div>
<button (click)="cancel()">No</button>
<button...
Read More ⟶
This is how we query from mongodb collection to fetch data with total length, offset and limit. For total length we need to use async.
let url =...
Read More ⟶
$ ng generate component dialog-boxx --skipTests=true
The post Remove spec.ts while generating angular component appeared first on Santosh...
Read More ⟶
Sometimes we need to create an dynamic iframe with height auto init. I will put a code to create a dynamic iframe inside a modal and add the code to auto height for iframe and modal.
var doc =...
Read More ⟶
Serialize form data using jQuery helps in getting form element data easy.
function getFormData(form) {
var rawJson = form.serializeArray();
var model = {};
$.map(rawJson, function (n, i) {
model[n['name']] = n['value'];
});
return model;
}
Now use model object to...
Read More ⟶
Hello Guys,
In this article I am going to show you how to connect android debugging wireless without data cable. Many time while debugging app or sites from devices gives us trouble while debugging from android devices. We need to use data cable which is very boring...
Read More ⟶