This site runs best with JavaScript enabled.

How to Use Route Parameters in Angular

First Published: July 1st, 2020

We often need to pass a parameter like an ID to a route and then access that ID in order to call an API to get some data. In this article, we'll look at how to define a route with a parameter, how to use params with the routerLink directive, and how to use the route snapshot to use a param in a component. We'll also learn about subscribing to…

Read →

Navigate Between Routes in Angular with routerLink

First Published: June 22nd, 2020

Once routing is set up, we can add a new route by adding a new component and adding a path to our routes array in app.module.ts . But how do we navigate between the two routes? In this lesson of Angular Basics, I'll show you how to use routerLink to switch between the routes without causing the page to refresh. Here's the video lesson: Add a New…

Read →

How to Add Routing to an Existing Angular Project

First Published: May 29th, 2020

When we first create an Angular app with the Angular CLI using ng new , it gives us an option to add routing. Sometimes we don't know whether we want to add routing yet, so we say no. What do we do, though, if we decide to add routing later? There's no separate CLI command to set up the routing for you. In this lesson, I'll show you how to…

Read →

Creating a Pinned Articles Component in Gatsby

First Published: May 28th, 2020

I wanted an easy way to pin articles to the front page of my website. It turns out Gatsby and GraphiQL make this process much easier than you'd think! First, I added a new pinned field to the frontmatter of the articles I wanted to put on the front page and set it equal to true . Frontmatter fields are great for splicing, dicing, and sorting…

Read →

Finding the Path from AngularJS to Angular

First Published: May 28th, 2020

Migrating from AngularJS to Angular can be really overwhelming. How on earth do you figure out where to even begin? I reprised a talk I gave last year for the ngPittsburgh meetup group called "Finding the Right Path from AngularJS to Angular" that goes over a decision tree you can use to determine this. Here's the recording: You can also watch the…

Read →

Refetching Data with RxJS Subjects in Angular

First Published: May 22nd, 2020

One of the things that drove me crazy when I was first learning RxJS in Angular was how difficult it seemed to reload a collection of data after I added or deleted an item. With promises, I could just use .then() and be on my way. What do we do with observables? Should we just nest another subscription? Even if we do that, since we're using the…

Read →

Managing Time as a Developer Advocate (Without Losing Your Mind)

First Published: May 22nd, 2020

I moved from regular full stack web development (C# and JavaScript, mostly Angular) to the world of content, developer relations, and developer advocacy in August 2018 when I joined Auth0 . It's a lot of fun, but no one tells you just how much stuff there is to do. At any given time, I could be: Writing a blog post Answering questions on Twitter…

Read →


← Older

I send emails about getting better at coding and life.

I'm on a path to become a better human and developer and I want to bring as many friends with me as possible. Want to join me? Sign up below. 👇



Sam Julien © 2020