Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Linx 98 posts 258 karma points
    Oct 23, 2021 @ 02:33
    Linx
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft