Hi Aiko,
test = app.controller(...)
puts a reference to app in the test variable. It does not return the TestCrtl.
Regards
Sander
Hi Aiko,
try something like this:
$routeProvider.
when('/', {
templateUrl: 'default.html',
controller: 'TestCtrl'
,
resolve: {loadData: $http.get('/api/data/')}
}).
otherwise({redirectTo: '/'});
Regards
Sander