In an Angular application you might need to run some checks before allowing the user to navigate to or away from a page. That’s where Angular Guards come into play. The picture below displays how guards work. A user is trying to navigate in the application, but before allowing navigation there is a guard that
In this post we will focus on Pipes: definition, built-in, custom implementation and testing. To better understand the advantages they offer we will focus on performance optimization. I will create a component and will display some data related to the students that will be transformed using pipes. For this article I have created a stack
In this article I will create step by step an Authentication library and along the way will describe Interceptors and Guards. Application Description This application will have these pages: Login, Home, User Dashboard and Admin Dashboard which will have different access levels as described in the table below. Login Home User Dashboard Admin Dashboard Non
In this article I will first implement a queue in typescript and will display data saved in the queue using Angular. Later on I will talk about priority queues and implement it using a similar logic. The idea is to display another type of queue where the elements will have a priority which will determine
Introduction In this article I will implement a stack in typescript and will display data saved in stack using Angular. Later on we will use this stack to solve the problem where we need to check if a string of parenthesis is balanced. Stack is a LIFO (Last In First Out) data structure. Let’s think
According to the official documentation: “RxJS is a library for composing asynchronous and event-based programs by using observable sequences.” There are lots of articles and definitions around the web related to async programming, but still challenges developers at the beginning. In my opinion RxJS is more than a library, it is a way of thinking.
In this article I will introduce a performant solution on how to implement a list with a large amount of data. I will start with displaying a short list and next will suppose that the data set is very large. The last step will be loading this large set from the backend. In each step
When I first started programming dependency injection and all the concepts related to it seemed to be a bit abstract for me. I could still create services and inject them, but still there seemed to be a gap in my mind on how this implementation seemed to work. In this article, first I will explain
Something went wrong. Please refresh the page and/or try again.
Follow My Blog
Get new content delivered directly to your inbox.