Read more about the article Change Detection in Angular: Default vs OnPush
Angular

Change Detection in Angular: Default vs OnPush

One of the most loved features of Angular is its ability to automatically update the view whenever data changes. This is thanks to the default Angular's change detection mechanism, which constantly checks for changes in data and updates the view accordingly. While this is great for most use cases, it…

0 Comments
Read more about the article A New Opportunity at Modulr
Modulr Logo

A New Opportunity at Modulr

There have been many new beginnings shared on LinkedIn over the past few weeks. It looks like the new year sparked a number of career changes, and I am no exception. I am thrilled to share my next career move, but let me look back on my time at Royal…

0 Comments
Read more about the article How to Set Page Title Based on Route in Angular
Angular

How to Set Page Title Based on Route in Angular

In this post, I will show you how to set page title based on route in Angular. Angular provides a built-in Title service that we can use to set the title of the web page dynamically from code. We will use the title service in combination with router events to…

0 Comments
Read more about the article Generating Routes File for Angular Universal Prerender
Angular

Generating Routes File for Angular Universal Prerender

In this blog post, I will show you how to generate a routes file for prerendering an Angular Universal application. We will create a basic routes file and append routes dynamically from an XML sitemap ahead of running npm run prerender command when building the application. Pre-requisites This post assumes…

0 Comments
Read more about the article Angular Universal: Setting HTTP Status Code
Angular

Angular Universal: Setting HTTP Status Code

Angular Universal gives superpowers to traditional Angular apps such as server-side rendering (SSR) and full features using Express.js server. This allows us to implement features like returning HTTP status codes in appropriate scenarios. In this post, I will show you how to set the HTTP status code from an Angular…

0 Comments
Read more about the article Error: Cannot resolve type entity i3.DialogModule to symbol
Angular

Error: Cannot resolve type entity i3.DialogModule to symbol

While updating my Angular Material Starter Template to Angular 14, I ran into an error causing broken builds. The console output seems to suggest this is a problem with Dialog module from Angular Component Dev Kit (CDK): Cannot resolve type entity i3.DialogModule to symbol. ./src/polyfills.ts - Error: Module build failed…

0 Comments
Read more about the article Using ng-deep in Angular
Angular

Using ng-deep in Angular

ng-deep is a special selector in Angular that you should use very carefully. I often come across ng-deep in code reviews, where I investigate further to see if it is really necessary. In this post, I will talk a little bit about ng-deep: what it does, where it is useful…

0 Comments
Read more about the article How I Passed Microsoft Azure Fundamentals Exam (AZ-900)
Azure dark

How I Passed Microsoft Azure Fundamentals Exam (AZ-900)

Microsoft Azure Fundamentals (AZ-900) is an entry-level exam that covers the fundamentals of Azure cloud services, pricing, security and compliance. Pass this exam and you'll earn a Microsoft certification, which is a great way to prove your knowledge of cloud concepts. Why Azure? It is mainly because of my professional…

0 Comments
Read more about the article Making Styles Work with [innerHtml] in Angular
Angular

Making Styles Work with [innerHtml] in Angular

In this post, we'll look at how we can apply styles to html content rendered via innerHtml attribute. By default, styles defined in an Angular component only work in that specific component. This is due to the Emulated view encapsulation policy set by Angular. This logical scope is great because…

0 Comments
Read more about the article AZ-900 Exam Practice Questions with Answers
Azure dark

AZ-900 Exam Practice Questions with Answers

This is a list of practice questions for Microsoft Azure Fundamentals (AZ-900) exam with answers. Question You need to deploy a serverless solution that meets the following requirements: Execution is triggered through an HTTP request.You pay only for the time that your code runs.You do not have to manage the…

0 Comments
Read more about the article How to Use Angular Material Theme Colours in Your Components
Angular Material

How to Use Angular Material Theme Colours in Your Components

Angular Material comes with pre-built themes to make getting started easy. Once you've picked a theme such as indigo-pink, you may want to re-use the base colours in your own components for consistency. Instead of creating your own scss variables, I would suggest copying base colours from Angular Material. Let's…

0 Comments