Point "view" in the package.manifest to a controller
Hello community,
I have used a package.manifest to add a custom dashboard to my backoffice following this documentation. I would like to point to a controller from this file. Is this possible? How do I do that?
I pointed to am .html file without any issues. I have tried replacing the path for the "view" with the path to the controller (as below) and that didn't work.
NB: I want to display content pending approval on my dashboard. If there is a better approach, kindly advise. Thanks!
You can't point to a controller. I would point it to the html file. Then add a js file which would then make a call to the controller. Something like this:
angular.module("umbraco").controller("myCustomDashboard.controller", function ($http) {
$http.get("/Controllers/Admin/Index").then(function(data){
//Do stuff
});
});
Point "view" in the package.manifest to a controller
Hello community,
I have used a package.manifest to add a custom dashboard to my backoffice following this documentation. I would like to point to a controller from this file. Is this possible? How do I do that?
I pointed to am .html file without any issues. I have tried replacing the path for the "view" with the path to the controller (as below) and that didn't work.
NB: I want to display content pending approval on my dashboard. If there is a better approach, kindly advise. Thanks!
Hiya!
You can't point to a controller. I would point it to the html file. Then add a js file which would then make a call to the controller. Something like this:
package.manifest:
Hope that gets you on the right track!
//Johannes
is working on a reply...