Skip to main content

Posts

Showing posts with the label array methods

What is CanActivateChild() Method in angular routes with details understanding and examples

Hello Guys, In this blog we are going to learn about child routes using auth guard with CanActivateChild() with details understanding and examples. CanActivateChild()  allows you to guard child routes in a similar way to  CanActivate  for guarding individual routes. CanActivateChild() is basically used to protect child routes inside the application from unauthorized users. This means if users don't have access then they can't access child routes. When every you creating canActivateChild, in that we are creating guards that execute before access of child routes. CanActivateChild() method normally takes two parameters : route and state. The route parameter represents the child route being activated, while the state parameter represents the current router state. The CanActivateChild() method must return a boolean value indicating whether the user has permission to access the child method. For Examples :    Authenticating users with a service named authService, our guard, "

What is CanActivate() Method in angular routes with details understanding and examples

Hello Guys, In this blog we are going to learn about CanActivate method in angular. A ngular is a highly capable framework for the web which enables the development of web apps that are both interactive and dynamic. A fundamental component of Angular is its capability to regulate access to particular portions of an application in accordance with a user's permissions or roles. Powering this feature is the CanActivate method, which is a native type of protection in Angular and ensures that routes are safeguarded. Angular's CanActivate method can play a vital role in secure application development. Let's explore it further in this blog. CanActivate, what is it? Angular's CanActivate interface is a guard that's quite handy when it comes to securing routes. With this interface, you can control who's got access to a particular route by checking if the user meets certain conditions. For example, you could require that the user is authenticated or has the right pri

What is Pipes in Angular? Built in Pipes with examples and how we can create custom pipe using angular

Hello Guys, In this blog you're going to learn about Angular Pipes with in-built pipes and and customized pipes with details understanding. As an Angular developer, you often come across situations where you need to transform data before displaying it to the user. For instance, you might want to format a date, display a currency in a specific format, or filter a list of items based on some criteria. This is where Angular Pipes come into the picture. Angular Pipes are built-in features that allow you to transform data easily and efficiently. What are Angular Pipes? Angular Pipes are a built-in feature in Angular that allow you to transform data in the template. A pipe takes in a value or values and returns a transformed value. The transformed value is then displayed in the template. Angular Pipes are similar to filters in AngularJS. However, they are more powerful and flexible. Angular Pipes can transform data in a variety of ways, including formatting, filtering, sorting, and more.

Java Script Array Methods with Examples Part 1

Hey Guys, in this blog we are going to learn about JavaScript Array like what is Array, How to create Array, Methods of array with example, etc.... Let's get started...  In this part we are covering below list of topics from array.   PUSH(), POP(), SHIFT(), UNSHIFT(), SLICE(), ISARRAY(), SKIP VALUE  What is the Array  - In simple word we can say array is  collection of  items.  - In JavaScript A  Pair of square brackets  is represent as a Array.  like []   - we can specify different element in array by comma separate.  like [a b, c, d, ..., z] Array looks like below:     const arrayDeclare = [100, 'd',  45,  67] How to create Array -In Java Script we can create array using different way like spread operators, Array.of(), Array.from(), etc.. -Here we are going to look into straight-forward way of creating array.     we can also use Array constructor to create array like below   Now let's start Experiments in A