user9431829
user9431829

Reputation:

To make Angular 7 application seo compatible

Html missing loading

This creates problems in terms of seo How can I fix ?

Upvotes: 0

Views: 173

Answers (1)

Niraj
Niraj

Reputation: 793

Use angualr universal in your application to make your app SEO friendly

run below command on your root:

ng add @ng-toolkit/universal

Next, when you run your application by ng serve command you need to run below command:

npm run build:prod
npm run server

Now check the view source in your browser you can find HTML with SEO content like below: enter image description here

Upvotes: 1

Related Questions