Heres the code
Controller:
function BlogsCtrl($scope, Blogs)
{
$scope.blogs = Blogs.query();
}
Services
angular.module("auth", ['ngResource'])
.factory("Blogs", function($resource)
{
return
$resource('http://www.domain.com/platform/app/server/blogs.php');
})
.factory("Login", function($resource)
{
return
$resource('http://www.domain.com/platform/app/server/accounts.php);
});
App.JS
angular.module('myapp', ['ngRoute', 'ngAnimate', 'auth'])
.config(myRouter);
function myRouter($routeProvider)
{
$routeProvider
.when("/home", { templateUrl : "partials/home.html"})
}
Just to reiterate works perfect on local machine
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.