Posts

Showing posts with the label angular auto changes input field

PDF to Image Conversion using Angular | CodeLSC

Image
Introduction In this tutorial, we'll explore how to build a PDF to Image converter using Angular. Converting PDFs to images can be a valuable feature in various applications, and Angular provides a robust framework for developing such tools.   Live Demo iframe generator Prerequisites Before we start, make sure you have Angular installed on your machine. You can install it using the following command: npm install -g @angular/cli   Getting Started Including PDF.js To enable PDF rendering in our Angular application, we need to include the PDF.js library. We can do this by adding the following script link in the <head> section of our index.html file. Make sure to include this script link in your index.html file to leverage the capabilities of PDF.js in our Angular application.   Setting up the Angular Component Let's begin by creating the basic structure of our Angular component. We'll have an HTML template and a TypeScript

Angular Input Change Event :

Image
  Angular Change Event : The (change) is a DOM event fires when changes to the form fields like <input> , <select> , and <textarea> are committed by the user.   Video  tutorial  :   https://youtu.be/qou1SDN_m2Y  This Event Fires When : ·        user changes the input & moves the focus away from the text box (blur event) ·        On <select> it fires when the user selects a new option either by a mouse click or using a keyboard. ·         Fires when the state of a check box or radio button change due to users action   Change Event Example : The following example shows how to use the change event in Angular. [app.component.html] <label> Enter a Text  </label> <input   class = "textInput"   type = "text"   (change) = "changeHandler($event)"   />   [app.component.ts] export   class   AppComponent  {    changeHandler ( args ) {      console . log ( ar