29 questions
1
vote
1
answer
99
views
Show or hide app-root depending on ngIf on Angular 12+
I am trying to show/hide a development page from most of people.
I changed the index.html like:
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<app-...
2
votes
1
answer
1k
views
Angular Universal: Implementing Dynamic SEO for Each Page with Server-Side Data Fetching
I am developing an Angular Universal application and aiming to implement dynamic SEO metadata for each page. To achieve this, I need to fetch data on the server side and dynamically update the SEO ...
1
vote
0
answers
216
views
SEO and Angular Translation using ngx-translate
I'm wondering how SEO is working for translated webpages from Angular app. I can see sometimes that when the translate call makes few time to retrieve the translation, the translation code are ...
1
vote
1
answer
2k
views
Angular universal : Unable to prerendering dynamic routes
There is an issue with prerendering dynamic routes. In my case, product-category is a primary route, and there is a title as a parameter so my link should be product-category/:title. There are many ...
0
votes
0
answers
1k
views
Add meta description based on current page in Angular
Hi I'm using Angular 13 to build a small website. The project contains 5 components and each component have their own meta-tags and descriptions. When I am switching from one component to another and ...
1
vote
2
answers
1k
views
Angular 12+ : getting errors after applying ssr steps
I have existing angular project. I need to apply ssr on my existing angular project. I am following this
ng add @nguniversal/express-engine this command works as expected.
npm run dev:ssr after ...
0
votes
1
answer
464
views
Angular Dynamic URL in lazy loaded module
I have page which renders content based on the params in the url, current route samples are given as follows,
domain.com/page/:pageId (domain.com/page/123456) renders Home Page
domain.com/page/:pageId ...
0
votes
1
answer
791
views
Server-side rendering (SSR) with Angular Universal
To create the server-side application module, I used this command
ng add @nguniversal/express-engine
Then, I ran the command :
npm run build:ssr , the build was successful.
After which I ran
npm run ...
0
votes
1
answer
1k
views
ReferenceError: window is not defined in angular universal
I am trying to use @nguniversal/express-engine and I have installed and trying to run it but its giving error in main.js file.
This is the error I am getting
C:\Folder\ssr\dist\ssr\server\main.js:...
1
vote
0
answers
288
views
How to deploy angular7 universal server side rendering to IIS
In Angular 7 project, deployed the code using ng build --prod to create a production build and copied the content of the dist folder to IIS folder and it works fine.
I tried to implement Angular SEO ...
0
votes
1
answer
376
views
Angular routes with parameter and SEO optimalization
I am currently facing a problem with SEO optimization of Angular app.
I have a main component which has bunch of links to Report page, looks like this
report/test1, report/test2, report/test3, ...
...
1
vote
0
answers
534
views
Angular universal Seo tags and JSON LD Issue.. Rendering one time on reload the page, meta and schema hides
Basically i am working on angular universal . In this i set and add the meta tags and add schema. And when we run the build (npm run build:ssr and npm run serve:ssr) . It sometimes show the meta and ...
0
votes
0
answers
211
views
Angular 7 SSR use navigator to define parameters
I have an angular 7 universal app in two languages, Spanish and English. I want to display the site in the user's configured language. In order to achieve that I have the following setup.
First my ...
0
votes
0
answers
170
views
When I past my SPA links in social media it is showing default meta tags only?
I am using Angular 7 for SPA
Here is the link "https://adda.io/openings/sales-openings/1".
Above link has it own meta and title when inspect I can see the tags inside , But when I post it in any ...
-1
votes
2
answers
4k
views
How to render html from server in angular 6 [closed]
I have a client side blog app that shows list of articles when loaded. I want to load the article data from server including the dynamic meta tags of that page for SEO purposes
For example:
I click ...