Found 8895 Articles for Front End Technology

How to create a Drawing Effect Animation using CSS

Aman Gupta
Updated on 28-Aug-2023 11:02:13

433 Views

Overview Cascading Styles Sheet (CSS) animation provides the HTML element a movement on the page. To achieve the drawing effect animation we need to have prior knowledge on the HTML svg element, path element and for CSS we should have knowledge on the animation and keyframe properties. As the svg element provides a space to build a custom image which can be inserted using the element. So to make the drawing animation we should have the knowledge to build the svg strokes. The svg path element has the following point data to build the strokes these data points are: ... Read More

How to create a Bars icon using jQuery Mobile

Aman Gupta
Updated on 28-Aug-2023 10:57:45

76 Views

Overview Bars icons are used as the navbar lines in the small screens. As the desktop mode of the screen shows the navbar in full view with navigation items but in the responsive nature of the navbar it only shows the bars line on the screen. So to build the bars icon using jQuery mobile can be achieved by defining the data−role attribute to any element with the value of “bars”. The bars is a predefined data role attribute. It can also be done with the simple jQuery but jQuery mobile provides a responsive way to display the icons on ... Read More

How to read a file in TypeScript?

Mohit Panchasara
Updated on 31-Aug-2023 12:54:07

7K+ Views

As a beginner-friendly programming language, TypeScript offers a variety of features to handle file operations effectively. Reading a file is a fundamental task that developers often encounter when working on projects. In this tutorial, we will explore different scenarios for reading files in TypeScript and provide clear explanations, along with syntax and code examples. Syntax const fileReader = new FileReader(); fileReader.onload = () => { const fileContent = fileReader.result as string; console.log(fileContent); }; The above is the syntax to read files in typescript. We create a new FileReader instance and use its onload ... Read More

How to Cast a JSON Object Inside of TypeScript Class?

Mohit Panchasara
Updated on 31-Aug-2023 12:50:29

700 Views

In TypeScript, casting JSON objects inside classes can be a useful technique for mapping JSON data to structured TypeScript objects. By explicitly defining the types, we can ensure type safety and access the properties of the JSON object seamlessly. In this tutorial, we will guide you through the process of casting JSON objects inside TypeScript classes, enabling users to leverage the full power of TypeScript's static typing. Syntax Users can follow the syntax below to create a cast of a JSON object inside a TypeScript class. class MyClass { // Define class properties property1: ... Read More

How I Got Started with Angular and TypeScript?

Mohit Panchasara
Updated on 31-Aug-2023 12:44:38

28 Views

I got started with Angular and TypeScript by realizing the importance of building scalable and maintainable web applications. Angular, as a web application framework, provided me with the tools I needed to build complex and dynamic applications with ease. TypeScript, as a statically typed superset of JavaScript, gave me the ability to write cleaner code, catch errors before runtime, and improve the overall scalability of my applications. In this tutorial, I will share my experience and guide you through creating a simple Angular application using TypeScript. We will cover the basics of Angular and TypeScript and provide a step-by-step guide ... Read More

Array Vs. Tuples in TypeScript

Mohit Panchasara
Updated on 31-Aug-2023 12:39:32

612 Views

When working with TypeScript, developers have access to various data structures to store and manipulate data. Two commonly used data structures are arrays and tuples. Both arrays and tuples allow us to store multiple values, but they differ in terms of their structure and usage. In this tutorial, we will explore the characteristics of arrays and tuples in TypeScript, discuss their differences, and provide examples to illustrate their applications. What is an Array? An array is a data structure that stores a collection of elements. It is an ordered list of values, where each value is identified by an index. ... Read More

How to automatically compile your TypeScript files with Visual Studio Code on OS X?

Mohit Panchasara
Updated on 31-Aug-2023 12:30:44

720 Views

TypeScript is a popular programming language that is widely used in the web development industry. It is an open-source, strongly typed, and object-oriented programming language that is a superset of JavaScript. TypeScript is very similar to JavaScript, but it has a few additional features that make it more powerful and efficient. One of the best things about TypeScript is that it can be compiled into JavaScript, which can be run in any browser or on any server. In this article, we will discuss how to automatically compile TypeScript files with Visual Studio Code on OS X. Visual Studio Code is ... Read More

Readonly Properties in TypeScript

Mohit Panchasara
Updated on 31-Aug-2023 12:24:44

249 Views

In TypeScript, properties are an essential part of defining the structure and behavior of objects. They allow us to encapsulate data and provide a way to access and manipulate it. By default, properties in TypeScript can be both read and write, meaning they can be both accessed and modified. However, there are scenarios where we may want to create properties that can only be read and not modified. This is where readonly properties come into play. Readonly properties provide a way to define properties that can only be accessed and not changed once they are assigned a value. They are ... Read More

Why is HTML used in web pages?

Ayush Singh
Updated on 22-Aug-2023 11:15:56

103 Views

Starting from the start of the Overall on the web, HTML (Hypertext Markup Language) has been the essential structure component for online destinations. HTML, which Sir Tim Berners-Lee made in 1990, has fundamentally impacted how data is introduced and gotten to on the web. This article looks at the reasoning behind the boundless utilization of HTML in web advancement, its critical qualities and advantages, and its progress with materialism in the quickly changing computerized climate. Historical Context and Evolution Due to its historical relevance and ongoing development, HTML is utilized in web sites. HTML was developed in 1990 by Sir ... Read More

Why do we use HTML code and CSS in sites?

Ayush Singh
Updated on 22-Aug-2023 11:15:24

165 Views

In the consistently developing computerized scene, sites assume a crucial part in scattering data, interfacing organizations with clients, and giving intuitive encounters. Behind each outwardly engaging and intuitive site page lies a strong team - Hypertext Markup Language (HTML) and Flowing Templates (CSS). Together, HTML and CSS structure the foundation of web advancement, giving the establishment to building drawing in and easy to understand sites. In this article, we will investigate the motivations behind why HTML and CSS are pivotal parts of current sites, digging into their jobs, benefits, and synergistic relationship. The Role of HTML in Website Development? HTML ... Read More

Advertisements