Why is landing page an asset and not a component?

Post Reply
MarsGoat
Posts: 1
Joined: 17 Dec 2020, 02:44

17 Dec 2020, 05:45

I want to remodel the landing page for my use case but the landing page is not a component. Why is that?

mert.sincan
Posts: 5074
Joined: 29 Jun 2013, 12:38

19 Dec 2020, 22:13

Hi,

Thanks a lot for your interest! This is by design. But, I'll talk about this with the PrimeNg team and get back to you asap.

Thanks a lot for your understanding.
Best Regards,

cagatay.civici
Prime
Posts: 18539
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Dec 2020, 11:25

Landing page is meant to be framework agnostic so implemented as a static content that provides easy SEO out of the box. You can wrap it as a component if you prefer though per your requirements.

cloudSolutions
Posts: 4
Joined: 06 Sep 2021, 03:19

20 Jun 2022, 01:51

i'm trying your advice "You can wrap it as a component" but JavaScript doesn't work:

Code: Select all

Uncaught TypeError: Cannot read properties of null (reading 'classList')
    at openMenu 
    at HTMLAnchorElement.onclick (VM2205:25:2)
How can I enable the Javascript piece of code?

mert.sincan
Posts: 5074
Joined: 29 Jun 2013, 12:38

30 Jun 2022, 14:06

Hi,

You need to update the JS codes. Firstly, you can move all JS events to your component ts file and then, you can bind it to the correct element.

Best Regards,

Post Reply

Return to “Freya - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests