var UmbracoApp=angular.module("ContentHelper",["ngResource",]);UmbracoApp.factory("NewsService",["$resource",function(n){return n("/api/NewsAndEvents/AllNewsAndEvents",{},{getCategories:{url:"/api/NewsAndEvents/NewsAndEventsCategories",method:"get",isArray:!0}})}]);UmbracoApp.controller("NewsController",["$scope","NewsService",function(n,t){n.categories=t.getCategories({},function(t){n.categoryMatrix={};angular.forEach(t,function(t){n.categoryMatrix[t.id]=t.name})});n.items=t.query({},function(){})}])