I have a query regarding a file containing an export constant that is utilized to construct a navigation bar in CoreUI. However, I am exploring methods to generate dynamic JSON data within other Components or the same file and then inject it into the exported constant. Any suggestions?
import { environment } from '../../../environments/environment';
export const navItems = [
{
name: 'Create Form',
url: environment.URL,
icon: 'icon-plus',
},
{
name: 'Views',
url: '#',
icon: 'cil-applications',
children: [
// Placeholder for injecting dynamic json data here
]
}
]