Skip to main content

Use angularJS inside a PHP cPanel plugin

Comments

3 comments

  • cPanelMichael
    Hello @alexis_, We don't offer a specific example of an application using AngularJS in our documentation. Could you let us know the step-by-step instructions of how we can reproduce the issue? You can post examples of the actual code you are using in CODE tags. Thank you.
    0
  • alexis_
    Hello, Thank for your answer, I tested a lot differents things but I will post the 2 things I tested and appear to be almost functionnal. * First version, based on those two pages : - cPanel Style Guide [PHP] header("Test App", 'app-key'); ?>
    Static Content
    {{tab.content}}
    Alert!
    I've got an HTML heading, and a select callback. Shiny!
    footer(); [/PHP] With this version, I know that angular is loaded because the console.log(angular) return something but I have an error because 3 angular controllers seems to be missing. 52127 The raw version of the console log : pastebin.com/raw/eY9muUFB I tried a second version after looking at the code of the cPanel TODO plugin : -github.com/squareplanetdesign/cpanel_todo_plugin I noticed this plugin add some dependencies and load stuff related to CJT too, so tried this : [PHP] [/PHP] I tried a lot of differents versions, loading random stuff from CJT, sometime I manage to get rid of the sidebarController error but the "applicationController" error is always blocking for me. Thanks a lot. Alexis
    0
  • cPanelMichael
    I tried a lot of differents versions, loading random stuff from CJT, sometime I manage to get rid of the sidebarController error but the "applicationController" error is always blocking for me.

    Hi Alexis, While we won't be able to help you with the development of the custom code itself, we can take a closer look at the system to check for anything obvious that could be leading to the error message you have reported. Could you open a support ticket using the link in my signature so we can take a closer look? Thank you.
    0

Please sign in to leave a comment.