Mayank Agarwal has Published 410 Articles

How to apply Switch in Vue using Filters?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:31:06

294 Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate ... Read More

How to add or apply global variables in Vue.js?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:29:26

4K+ Views

In a Vue.js application there may be data or utilities that are used in many components, but you don’t want to change its scope and keep its value same for all the components. These types of variables are called the global variables. In such cases, the user can use the ... Read More

How to add multiple data types for props in Vue.js?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 17:02:16

563 Views

The javascript attribute names are case insensitive, so browsers are made in a way to interpret any uppercase characters to lowercase. This means, while using the DOM elements, camel Cased props names need to use their kebab-based (hyphen-delimited) equivalents. So let’s say that you are not sure of the type ... Read More

How to add elements to an Array using filters in Vue ?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 17:00:22

284 Views

Vue can be defined as a progressive framework for building user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate with ... Read More

How to access child method from the parent in Vue.js?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:59:51

5K+ Views

Let’s say you have two nested components i.e. a component inside another component. How will you be able to access the child methods from the parent? To access the child method from the parent method you could use ref. Or you can also access the descendants of a parent via ... Read More

How can I pass parameters in computed properties in VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:29:24

1K+ Views

The difference between a computed property and a method is that computed properties are cached, these properties only change when their dependency change. A method will be evaluated every time it is being called. The only useful situation is when the user wants the getter and needs to have the ... Read More

Checking if an image is loaded or not on the browser using VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:27:11

2K+ Views

Whenever we insert an image in the front end of any system, it is very important to show the user proper data and images to enhance the user experience. In any project, an image is basically loaded from the remote path URL or from the application. An image may not ... Read More

Adding or removing elements from a list dynamically using VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 12-Apr-2023 16:23:42

2K+ Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate ... Read More

How to use the debugger keyword in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 14:31:01

547 Views

Whenever an unexpected occurrence takes place in a JavaScript code, we need to debug it to check the cause. Debugging is a very important aspect of programming that lets you determine why a system or application behaves abnormally. It is a process of testing multiple times with different inputs and ... Read More

How to use setTimeout() function in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 28-Apr-2022 14:22:15

3K+ Views

The setTimeout() function is provided by the window object, which calls the specified JavaScript function after the specified time only. This function will be called just once after waiting for the timeout set by the user.It is similar to an alarm or reminder functionality. In the same way, we set ... Read More

Advertisements