Hello,
I am trying to create a new form in a custom plugin. I use those two pages as reference:
cPanel Style Guide
Guide to cPanel Interface Customization - jQuery - Software Development Kit - cPanel Documentation
But when I try i get this javascript error:
Error: Script error for: base
Common Errors
This is my javascript code:
I am trying to create a new form in a custom plugin. I use those two pages as reference:
cPanel Style Guide
Guide to cPanel Interface Customization - jQuery - Software Development Kit - cPanel Documentation
But when I try i get this javascript error:
Error: Script error for: base
Common Errors
This is my javascript code:
Code:
document.addEventListener("DOMContentLoaded", function () {
// Load the frameworks bundle, which contains the jQuery library and is used by the rest of cPanel
require(["frameworksBuild"], function () {
require([
"angular",
"uiBootstrap",
"ngSanitize",
"cjt/directives/toggleLabelInfoDirective",
"base"
], function (angular) {
var app = angular.module("App");
app.controller("formController", ["$scope", function ($scope) {
}]);
});
});
});