I am working on Angular Routing and have URLs hardcoded directly in my javascript file. However, I would need to keep these URLs in a separate file, where should I keep it preferably? I can't map them with variables in XML or java given that I am working on CQ Adove 5 environment.
Is it possible to do so in another JS file where I can have mapping between variables and URLs as key-value pair? or would it be better to do so in a JSON?
How can I pick up the values from one JS and access in another JS? I would like to have a variable xyz in place of "/content/abc.html".
Code .when('/', { templateUrl: '/content/abc.html', controller: 'tempController' })
to .when('/', { templateUrl: abc, controller: 'tempController' })
Any help would be really appreciated.