Routing II - Stuck At Step 1 with Error


#1

I'm working on Routing II and I can't get past Step 1. I just get a loading icon and after a few minutes, I get the error below.

Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
[33mWARN [karma]: [39mPort 9876 in use

I've already tried restarting my browser, using a different browser, and restarting the exercise but none of them fixed the problem.

Here's my code from app.js

var app = angular.module('GalleryApp', ['ngRoute']);

app.config(function ($routeProvider) { 
  $routeProvider 
    .when('/', { 
      controller: 'HomeController', 
      templateUrl: 'views/home.html' 
    })
  	.when('/photos/:id', {
  		controller: 'PhotoController',
    	templateUrl: 'views/photo.html'
  	})
    .otherwise({ 
      redirectTo: '/' 
    }); 
});

#2

@spartanfinisher,

In this article
http://stackoverflow.com/questions/35185328/angularjs-route-stops-working-on-a-local-port
found

The problem was somewhere in cookies. 
After I clear cookie it goes ok.
 I use Auth0 service for logging. 
Maybe the problem is somewhere in their angularjs sdk

#3

Thanks! in my case I just switched my browser to Microsoft Edge for this particular exercise!


#4

it works!!! Thank you!!!


#5

Write the code correctly as written in the screenshot and click on localhost https://localhost:8000 either it is visible or not Uploading...
It works for me . I hope it will work for you too