Showing posts with label Angular. Show all posts
Showing posts with label Angular. Show all posts

Sunday, 31 December 2023

Solution NG5002: Unclosed block @

 How to solve if meet NG5002: Unclosed block @ component html.

To solve this problem, just replace code like below :

<p>Copyright @{{currentDate | date: 'y'}}. All

to

<p>Copyright &commat;{{currentDate | date: 'y'}}. All

So you just need replace @ symbol to &commat.

I hope this information can helping you.

Solution app.module.ts angular not found

 To solve app.module.ts angular not found

You can use the following command to generate a project that has app.module.ts and app-routing.module.ts:

ng new my-app --no-standalone --routing --ssr=false

Hope this information can helping you.