Skip to content

Commit 73ea399

Browse files
Fix import error and a typo (#7)
"An import path cannot end with a '.ts' extension". Removing the .ts fixed the problem in my case.
1 parent b1af97d commit 73ea399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/chapter-5.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Let's break down this example. First of all, the name `createAction` is a bit de
4141
// src/app/app.component.ts
4242
import { Component, OnInit } from "@angular/core";
4343

44-
import { addCategory } from "./state/actions.ts";
44+
import { addCategory } from "./state/actions";
4545

4646
@Component({
4747
// component boilerplate omitted for the sake of brevity
@@ -67,7 +67,7 @@ Yes, you've read it correctly: we have learned how to write some basic code in N
6767
_For this homework, assume categories cannot have duplicate names. We will deal with this problem later_
6868

6969
1. Create an action for deleting a category. It should receive a string with the name of the category, and in the next chapter we will use that code to write the actual logic for deleting the category.
70-
2. Create an action for updating a category. It must receive a `Category` object (`{name: string}`), and again, we will right the code to update the category in the next chapter
70+
2. Create an action for updating a category. It must receive a `Category` object (`{name: string}`), and again, we will write the code to update the category in the next chapter
7171

7272
> You will find solution code for all the homeworks in the end of the chapters
7373
> **Important!** Do not move to the next chapter without adding the homework code! We will be using that code in the next chapters

0 commit comments

Comments
 (0)