Fix AWS amplify angular app error on Access Denied error

When deploy your angular app on AWS amplify, the first landing page is able to load. However, when you defined a path in your router, and try to access it, you would hit Access Denied error: The solution is to navigate to AWS console, select “ Rewrites and redirects”, add a new rewrite and redirects,… Continue reading Fix AWS amplify angular app error on Access Denied error

Angular Error Explained: Expression Changed After It Has Been Checked Error

A colleague of mine encounters an error message while developing an Angular frontend app. The error message is like this: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value ‘null’, Current value: ‘true’. The scenario for this error is when he’s developing a back button feature from the second page to the first page,… Continue reading Angular Error Explained: Expression Changed After It Has Been Checked Error

Writing unit test cases with Karma for angular component

I would like to convince you to start writing unit test cases for your angular web app. Shorten time to production is not an excuse to accumulate technical debts. There are many good reasons why you should start writing it: It helps you identify issues as soon as possible, especially when many different teams working… Continue reading Writing unit test cases with Karma for angular component