Copied to clipboard

Flag this post as spam?

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


  • Niclas Schumacher 67 posts 87 karma points
    Mar 12, 2014 @ 15:15
    Niclas Schumacher
    0

    angular naming custom section

    Hello!
    I am developing a site for a customer, where i have the need to create a custom section to view data in the backoffice which isn't umbraco data. 

    normally when i write angular in the frontend i have modules like "project.resources". Which is fine. But i'd like to use this projekt.resources in my backoffice angular, to retrieve data instead of creating a resource to the backoffice only. I tried doing :

    angular.module("umbraco" ["project.resources"]).controller("project.testController", 

    But doing this overwrites the umbraco module dependencies, which crashes all backoffice.. 

    when creating angular to backoffice, should i create controllers / resources on the umbraco module ? 

    if so, how can i access data outside of the umbraco module, like project.resources? Or should i really create another resources file for my umbraco module which gets my data. So the frontend stuff dosn't have anything to do with my backoffice, eventhough it is used in the same way. 

     

    Hope it makes sense. 

    - Niclas Schumacher

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Mar 12, 2014 @ 18:24
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies