This site runs best with JavaScript enabled.

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 →

Use a Proxy with the Angular CLI to Fix CORS Development Problems

First Published: May 12th, 2020

This week in the Angular Basics egghead collection , we're talking about proxying local servers for development. This was something that really baffled me when I was first getting started as a developer, so I'm excited to share it with you. When we first try to use a local server for our data in development, we get a rude error in the console and…

Read →

Write a Basic GraphQL Client for NgRx

First Published: May 8th, 2020

One question both Mike Ryan and I get asked often is whether NgRx is compatible with GraphQL . I think the confusion comes from the fact that many popular GraphQL clients can also handle local state management. The assumption is then that, since NgRx handles state management for you, you wouldn't use GraphQL alongside NgRx. In this stream, Mike…

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