Buen día
Tengo una consulta dado que yo tengo una plantilla prestige que quiero guardar la configuración del tema en BD por usuario, pero en el componente app.component.ts esta donde se parametriza que tema esta por defecto al cargar el proyecto pero al hacer el cambio no se ve efectos
Revisando el proyecto encontré que en el index.html se hace referencia a ese tema y layout
<head>
<meta charset="utf-8">
<title>TCL</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link id="theme-css" rel="stylesheet" type="text/css" href="assets/theme/theme-cyan.css">
<link id="layout-css" rel="stylesheet" type="text/css" href="assets/layout/css/layout-aqua.css">
</head>
Pero yo no quiero que cargue con esos sino con los que se definan en el app.component.ts que al final es el fin del componente
export class AppComponent implements OnInit{
theme = 'indigo';
layout = 'layout-canvas';
layoutMode = 'horizontal';
wrapperMode = false;
inputStyle = 'outlined';
ripple: boolean;
constructor(private primengConfig: PrimeNGConfig) { }
ngOnInit() {
this.primengConfig.ripple = true;
this.ripple = true;
}
}
Quedo a la espera de sus comentarios
Prestige no lee primero las configuraciones del tema del componente
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Hi,
Firstly, your theme and layout choice must be the same in index.html and app.component.ts files. Also, you can change the theme and layout using one of them. We use variables in app.component.ts file for the live demo. You can use only index.html definitions.
Firstly, your theme and layout choice must be the same in index.html and app.component.ts files. Also, you can change the theme and layout using one of them. We use variables in app.component.ts file for the live demo. You can use only index.html definitions.
-
- Posts: 10
- Joined: 09 Mar 2018, 05:29
Muchas gracias por tus comenarios
Al final lo resolvi de otra manera, pero agradezco el apoyo
Saludos
Al final lo resolvi de otra manera, pero agradezco el apoyo
Saludos
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest