I'm trying to move angular controller to a separate file similar to this solution but I'm getting an error as in the subject:
Argument 'MyPluginEditController' is not a function, got undefined
I don't know angular.js so I am not very sure what I'm doing but I don't think at this stage it would be too difficult. Yet for some reason my app cannot find the controller.
The contact.resource just has this (which is not used yet):
angular.module("umbraco.resources")
.factory("contactResource", function ($http) {
return {
getById: function () {
return $http.get("MyPlugin/Contact/GetAll");
}
};
});
In addition id in the header MyPlugin section {{id}} doesn't show up. I thought it would show up the menu item id? But the header shows just MyPlugin section
Argument 'MyPluginEditController' is not a function, got undefined
I created a new custom section in my umbraco based on this article: http://www.enkelmedia.se/blogg/2013/11/22/custom-sections-in-umbraco-7-%E2%80%93-part-2-the-views.aspx
I'm trying to move angular controller to a separate file similar to this solution but I'm getting an error as in the subject:
Argument 'MyPluginEditController' is not a function, got undefined
I don't know angular.js so I am not very sure what I'm doing but I don't think at this stage it would be too difficult. Yet for some reason my app cannot find the controller.
So far I have
myplugin.manifest
:edit.html
view:and
edit.controller.js
:The
contact.resource
just has this (which is not used yet):In addition id in the header
MyPlugin section {{id}}
doesn't show up. I thought it would show up the menu item id? But the header shows just MyPlugin sectionWhat am I doing wrong?
is working on a reply...
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.