Let’s Code Better

  • Using Deferred Views in Angular 17 with @defer, @placeholder, @error, and @loading

    Angular 17 has introduced Deferred Views which can help to drastically improve and optimize the performance of large-scale applications consisting of complex layouts. Deferred views allow us to delay the creation and rendering process of deferred sections of our template. Imagine having to wait for an entire movie to download before you could even see…

    Read more: Using Deferred Views in Angular 17 with @defer, @placeholder, @error, and @loading
  • Angular 17 Standalone Components – Lazy Loading, Dependency Injection, Hooks and Much More!

    With the latest advancement in the Angular framework ecosystem, we are heading towards a more robust architecture of standalone components which helps to maintain the maximum level of decoupling, reusability, maintainability and ofcource performance.

    Read more: Angular 17 Standalone Components – Lazy Loading, Dependency Injection, Hooks and Much More!
  • Ruby For Web Scraping: The Ultimate Tutorial

    Retrieving data from online sources can be done through diverse programming languages, each with distinct capabilities. Ruby is a remarkable selection for web scraping tasks. It is an excellent language for efficiently navigating and extracting information from websites. Web scraping using Ruby is a powerful skill that can unlock a world of data. It ensures…

    Read more: Ruby For Web Scraping: The Ultimate Tutorial
  • [Angular 16] Show Toastr using Util Service with Ngx-Toastr

    Toastr is a popular, lightweight JavaScript notification library to displays non-blocking messages to users. We can easily implement various types of feedback to notify users of errors, success alerts, warning messages, or provide other feedback by adding just a few lines of code. For the Angular applications, we will use the Nxg-Toastr package which is…

    Read more: [Angular 16] Show Toastr using Util Service with Ngx-Toastr
  • [Angular] Ngx-Translate – Lazy Loading, Pluralization, Caching, Unit Test, Events and More!

    In Angular, we already get basic internationalization built-in support, ngx-translate provides much more features with robust and flexible solutions to fulfil translation requirements in the application. In this detailed guide, we will walk through the basic to advanced implementation of ngx-translate module including lazy-loading, language switch callback events, pluralization, caching, creation of unit tests etc.…

    Read more: [Angular] Ngx-Translate – Lazy Loading, Pluralization, Caching, Unit Test, Events and More!
  • [React Js] Open Links, Anchor, Router, PDF in New Tabs

    Open Links, Anchor, Router, PDF in New Tabs React js

    In this React js tutorial, we will discuss how to open an external URL, an anchor tag with href, open links in new tab programmatically or even a PDF file in a new tab within your React application. We will discuss with the help of simple examples through different methods to open links in new…

    Read more: [React Js] Open Links, Anchor, Router, PDF in New Tabs
  • [Angular] How to Change Startup Component – Dynamic, Runtime Methods

    How to Change Startup Component - Dynamic, Runtime Methods

    In Angular, when we create a new project, the App Component is created default as the parent component. In some situations, you may need to change the startup component or root component. The root components can be statically changed or dynamically on runtime based on some logical business behaviours. The startup component is the entry…

    Read more: [Angular] How to Change Startup Component – Dynamic, Runtime Methods
  • Dynamically Update Form Control Required Validation in Angular Reactive Forms

    Form Validation in Angular applications plays a very important role to provide a good and smooth user experience. In some situations, we may need to dynamically handle or adjust the validation rules for form controls as the user starts filling out the sections. In this guide, we will discuss the process of how to set…

    Read more: Dynamically Update Form Control Required Validation in Angular Reactive Forms
  • Dynamic Data List Filtering on Click in Angular

    In this article, you will learn how to filter a dynamic data list using an Input field only when the filter or search button is clicked. There will also be a reset button to clear the Input control and show all the results. Generally, we create a filter list where the results are filtered live…

    Read more: Dynamic Data List Filtering on Click in Angular
  • Python List – Extracting First n Elements with Slicing and itertools Module

    Python is a popular programming language with popular features in the list of data structures. In this guide, you will learn how to extract the first n elements from a list in Python. For example, we may want the first 3 or first 5 items for processing from a list. In this article, I will…

    Read more: Python List – Extracting First n Elements with Slicing and itertools Module
  • Top Ways to Implement HTTPS in React & Angular Apps

    Cybersecurity is a top priority for organizations worldwide with increased threats. However, an app’s front end must be secure for better data protection. React and Angular are leading frontend frameworks with a history of vulnerabilities.

    Read more: Top Ways to Implement HTTPS in React & Angular Apps
  • Angular Material Radio Button – Radio Group Validation in Template or Reactive Forms

    In this detailed guide, you will learn how to work with Radio button form controls provided by the Material library in the Angular project. We will create forms using Template Driven and Reactive Forms approach and also implement required validation to throw a warning message if the form is submitted without selection. Angular Material Radio…

    Read more: Angular Material Radio Button – Radio Group Validation in Template or Reactive Forms
  • Data Lists in Angular 15 – Add, Remove, Sort, Filter and Server Side Resolve

    Data lists are used to list down items that can be of Array or Object type. In this article we will discuss how to list down items and also other operations related to them like: Optimize Data List using trackBy How to get an Index of each data list item? Using an alias with ‘as’…

    Read more: Data Lists in Angular 15 – Add, Remove, Sort, Filter and Server Side Resolve
  • Angular 15 – Hide Routing URL in Browser Address Bar using 3 Methods

    In this tutorial, we will discuss 3 effective methods to hide the address URL change while navigating from one page to another while routing. The methods to hide URL addresses will include the use of skipLocationChange of router service, using the location API and deploying the pathLocationStretegy service of Angular core. One might wonder, why…

    Read more: Angular 15 – Hide Routing URL in Browser Address Bar using 3 Methods
  • Angular 13 How to Make REST Search Call using RxJS Debounce ?

    In this Angular 13 tutorial, you will learn how to make the API search calls to a remote server in an optimized way. By using the RxJS operators and functions we can minimize the number of API calls made to the server and same time improve the usability of the application by implementing the debounceTime,…

    Read more: Angular 13 How to Make REST Search Call using RxJS Debounce ?
  • Angular 14 Draggable Grid Blocks using angular-gridster2 Tutorial

    In this angular tutorial, we will discuss how to create dynamic draggable grid boxes using the angular-gridster2 library in Angular application. A gridster is a UI component, having draggable and resizable grid boxes. Such kind of components can have multiple use-cases like sorting of items, solving puzzels, priortizing sections etc.

    Read more: Angular 14 Draggable Grid Blocks using angular-gridster2 Tutorial
  • Angular 13 Dynamic FormsGroups using Reactive Form Tutorial

    In this Angular tutorial, you will learn how to create dynamic FormsGroup in the Angular application. You will also get to know how to enable/ disable a section/ form group in a reactive form and dynamically add or remove form groups and controls. Using Reactive forms in Angular, we can create Forms with multiple sections…

    Read more: Angular 13 Dynamic FormsGroups using Reactive Form Tutorial
  • Phone (Mobile) Validation Using ReGex in React Js – StackBlitz Example

    How to validate a phone/ mobile number in the react js form; In this tutorial, you will learn how to validate the phone number using the regex pattern in React application. We will use the regex pattern to validate the phone number value in JavaScript.

    Read more: Phone (Mobile) Validation Using ReGex in React Js – StackBlitz Example
  • Angular Material 13 Server Side Table Pagination Example

    Adding server-side pagination in the Material table using the Mat Paginator component. We will fetch the dynamic rows from the MySQL table and fetch them using the PHP file. In this tutorial, you will learn how to add dynamic pagination to load items for a page from a database on pagination.

    Read more: Angular Material 13 Server Side Table Pagination Example
  • Angular 13 Material Dialog Example – Positions, Fullscreen, Events Tutorial

    In this Angular material tutorial, you will learn how to implement Dialog modal with an extensively used scenario tutorial with easy to go tutorial. You will get to know how to position a Dialog or display a fullscreen modal popup. Explore various events and popup hooks including after opened or closed callbacks. Passing data dynamically…

    Read more: Angular 13 Material Dialog Example – Positions, Fullscreen, Events Tutorial
  • React Fixed Animated Header with Fade and Slide In onScoll Event

    Learn how to create an on-scroll sticky fixed header with a resizable logo using React JS, CSS animations, and various animation styles for a smooth user experience.

    Read more: React Fixed Animated Header with Fade and Slide In onScoll Event
  • Vue – Bootstrap Date & Time Picker Calender Component Example

    In this comprehensive tutorial, you will learn how to create a robust and reusable date & time picker component in the Vue application. The DateTimepicker popup will be compatible with bootstrap 4 stylings. We will deploy the vue-bootstrap-datetimepicker library package to create a date-time picker.

    Read more: Vue – Bootstrap Date & Time Picker Calender Component Example
  • Custom Email Validation Regex Pattern in React Js

    How to validate an email address in the react js form; In this tutorial, you will learn how to validate the email address using the regex pattern in React application. We will use the regex pattern to validate the email address value in JavaScript.

    Read more: Custom Email Validation Regex Pattern in React Js
  • Chrome Styled Color-Picker in React Js Application

    Colour picker component to select color code in React js application; In this React tutorial, you will learn how to add a color selection or picker component in React application. In the web applications, which includes online tools to generate dynamic and creative layouts deploy color-picker widget. Using such interactive tools, users can choose colors…

    Read more: Chrome Styled Color-Picker in React Js Application
  • Ionic 5 Range Slider Example – Single, Multiple Markers on Bar with Custom Styling

    Ionic Range Slider with draggable tick icons on the scaling bar; In this Ionic 5 tutorial, you will learn how to add a Range slider using the build-in UI components in the Ionic Angular application. A range slider component consists of draggable markers, which can be dragged on a defined bar to select a value.…

    Read more: Ionic 5 Range Slider Example – Single, Multiple Markers on Bar with Custom Styling