#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/