Skip to content

Commit 0e09c18

Browse files
committed
Update README.md
1 parent 9041594 commit 0e09c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ Starter files and support materials for the Pluralsight course: "Angular with Ty
44
NOTE:
55
- In the productResourceMock.ts file, on some systems the id variable is typed as "any" and the code works "as is".
66
- In other cases, the implicit typing marks the id variable as a string. When this happens, the compiler generates an error on the comparison saying the operator "==" cannot be applied to types "number" and "string". The solution is to use the "+" unary operator to convert the array element to an integer:
7-
`var id = **+**parameters[length - 1];'
7+
`var id = **+**parameters[length - 1];`

0 commit comments

Comments
 (0)