I'm going through some tutorials on AngularJS which I've never done before.
The common pattern I've come across on Umbraco is that there is a . resources.js file and .controller.js file.
If I have a resource file residing under a section name i.e. /app_plugins/myPlugin/resources.js
Could I place the declaration of controllers under each sub directory for each area of my section?
In which case if I have a sub directory under myPlugin called Clients, vehicles etc which are all separate areas for a section, could I have a controller.is for each of these folders dedicated for clients, vehicles to get data for those pages where I have initialised the controller in one file which is the .resources.js file?
AngularJS structure in Umbraco 8
I'm going through some tutorials on AngularJS which I've never done before.
The common pattern I've come across on Umbraco is that there is a . resources.js file and .controller.js file.
If I have a resource file residing under a section name i.e. /app_plugins/myPlugin/resources.js Could I place the declaration of controllers under each sub directory for each area of my section?
In which case if I have a sub directory under myPlugin called Clients, vehicles etc which are all separate areas for a section, could I have a controller.is for each of these folders dedicated for clients, vehicles to get data for those pages where I have initialised the controller in one file which is the .resources.js file?
is working on a reply...