Correct way to change theme

Post Reply
Del
Posts: 13
Joined: 29 Jan 2019, 18:49

28 Apr 2019, 15:34

Hi,

I bought a Apollo theme and I see that in the index.html there are links to ...theme/theme-blue-light.css...

I used the method changeTheme(), on the "onInit" method to set another theme, but the screen 'flashes' at each reload...

What is the correct way to use a theme chosen by user when he or she logs in?

Thanks.

merve7
Posts: 499
Joined: 12 Sep 2017, 10:44

24 May 2019, 10:22

Hi,
Is your login page an angular component? Did you try to change the theme when the user clicks the login button?

Del
Posts: 13
Joined: 29 Jan 2019, 18:49

14 Jul 2019, 00:45

Hi,
I do not know why, but it 'suddenly' start to works fine...
Thank you!

merve7
Posts: 499
Joined: 12 Sep 2017, 10:44

19 Jul 2019, 10:12

Glad to hear that :)

Post Reply

Return to “Apollo - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests