Services Step 4 doesn't pass


#1

Services step 4 says to modify the main controller and pass the forecast service like this'

app.controller('MainController', ['$scope', 'forecast', function($scope, forecast) {
// ...
}]);

i did the same still it doesn't pass this step. please help.


#2

It may be that the session timed out. Run the code to be sure it is saved, then refresh the page. I'm going to assume that the previous three steps all passed.


#3

Yes the issue is happening to me as well.....

I have tried tying again and again and again ...no use.....

refreshed the page several times .....no use...

got stuck in this step for more 24 hrs....please help
4.
In the controller, modify MainController by passing in the forecast service, like this:

I did the below:
app.controller('MainController',['$scope','forecast',function($scope,forecast){

}]);


#4

I am also having same issue. Entered this code:

app.controller('MainController', ['$scope',
'forecast', function($scope, forecast) {
// ...
}]);

Syntax appears to be same.... however, it will not let me pass.


#5

And I have such problem.


#6

app.controller('MainController', ['$scope', 'forecast', function($scope, forecast) {
  
  
}]);

#7

i am facing the same problem. how to move ahead now??


#8

I don't know the reason.
I typed the code as the instruction said, but it didn't work.
then i copy the code in the instruction, then i passed.
wired~ It don't accept the code typed by me?


#9