Welcome to my blog !

6 ways to get input text value in Angular|Typescript

January 1, 2022 ·  6 min read

The form is a basic UI element in the Angular application that is displayed on the browser page to take user information. The form contains multiple HTML input elements to take input from the user. a button allows the user to submit the form to backend API and it calls click binding event. In Angular, View is an HTML template and controller is a typescript component. Reading input text is a basic concept every Angular developer need to know....

5 ways to use Input blur event in Angular| Angular blur event tutorials

January 1, 2022 ·  4 min read

In this tutorial, We will learn how to use input onBlur event in Angular First, what is the onBlur event? where is this being used in Angular? onBlur is a javascript event, fired when the input element lost its focus. Other versions available: React onBlur event guide example Vue js Blur event example It is helpful while doing form validations. In Plain HTML pages, the onBlur element is added to the input element....

5 ways to run a single test spec file in Angular app

January 1, 2022 ·  3 min read

In this tutorial, You learn different ways to run a single test component file in an angular application. This also includes running a single spec file from jasmine and mocha with karma runner. Usually, Angular application created with cli has a test.js file located in src folder This file contains below line of code which configures to include test files while running ng test or ng t command. const context = require....

5 Ways to print arrays to the browser console window in javascript?

January 1, 2022 ·  3 min read

This tutorial talks about how to display an array of javascript objects to console logs for debugging. It also includes how to print primitive values to the console. There are many ways we can print the javascript array into the console. In javascript, We have console object, has following things used for printing console log console.dir console.table if you have an array with either objects or primitives, printed using console....

5 ways to get Image width and height javascript examples

January 1, 2022 ·  3 min read

Image contains width and height based on resolution. Sometimes we need to find the width and height of an image using javascript and jquery. Images are of different types png, JPEG, and SVG. This post covers how to find the image height and width in Javascript, Jquery, and Nodejs. Using Jquery Selectors Plain Javascript Plain JavaScript to get the height and width of an image In Plain javascript, Two ways we can get the height and width of an image....

You'll get a notification every time a post gets published here.