What I am doing
I am trying to create a service which loads the user budgets for current month. The code looks like
$scope.thisMonthBudgetSummary = function () { console.log('retrieving budget summary');
var date = new Date(); BudgetSummary.get({'month': date.getMonth() + 1, 'year': date.getFullYear()}, function () { // success }, function (error) { //error console.log('error:', error.status); }) };
Problem
- I want to render a different view on Single Page when HTTP response is 404, what is the recommendation on that? I am confused
- I believe its not a good idea to hard code the template name in Controller