Router III -> Did you add code to format views and upvotes?


#1

3.Use the number filter to format the views and upvotes.
for the above question i had written answer but i could not get the answer as correct i am keeping the error plz help me out

i have added the number formatter with filter in photo.html page for p tag
photo-views | number
photo-upvotes | number

and when click on Run button it keeps loading its not stopping only
please suggest


#2

You have to post your code. Use </> to format it properly.


#3

i have the same problem. it’s loading and loading and is not stopping, and code is good.

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: '/'
  	});
});


#4

You have to loggedOut for a while and again login it will be work.I have got the same problem.


#5

can any body help me on this issue…due to this i am not able move to the next lesson


#6

I had the same problem. Exceptionally you should use a another browser for this exercise. I have done this on Microsoft Edge and everything was fine.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.