Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to develop a custom section where I use Angular.
I would like to use ngResource but if I include it I get
No module: ngResource
The only angular I have included is this
Do I have to load angular-resources.js or is something else wrong here ?.
Yes, it looks like ngResource requires a second script file to be included in order to use it: https://docs.angularjs.org/api/ngResource
You can do that in the package manifest for your custom section: http://umbraco.github.io/Belle/#/tutorials/manifest
Thansk for tha answer
Just found it strange that I had to do this because it's included in the Umbraco release.
I also had other problems including the ngResource module but finally found a way if anyone else are having problems with the module.
var app = angular.module("umbraco");
//Only need to inject/requires the ngResource module once
//As when done all other controllers will have access to it
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted