JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Integrate admin templates with codeigniter application › Reply To: Integrate admin templates with codeigniter application
March 4, 2022 at 8:19 am
#102930
admin
Keymaster
Hi
The JS files should be configured in the routing as well. Each page has different dependencies and the configuration should be set there.
Example:
{
path: '/dashboard-2',
template: './dashboard-2/template.htm',
styleUrls: ['./dashboard-2/styles.css'],
scriptUrls: [
'../../../smart/source/modules/smart.calendar.js',
'./dashboard-2/index.js'
],
title: 'Dashboard 2 - ' + defaultTitle
}
Best regards,
Peter Stoev
Smart UI Team
https://www.htmlelements.com/