8.directives


#1

Hello, i added two new books to $scope and they are showing good with all the date in his correct site in the page,
but when i run the code always take a loooong time to check(my internet is ok) and always send me the error :
[33mWARN [karma]: [39mPort 9876 in use

Here is my MainController.js code, i didnt change anything in the index.html :

app.controller('MainController', ['$scope', function($scope) {
$scope.title = 'This Month\'s Bestsellers';
$scope.promo = 'The most popular books this month.';
$scope.products = [
{
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03', '08'),
cover: 'img/the-book-of-trees.jpg'
},
{
name: 'Program or be Programmed',
price: 8,
pubdate: new Date('2013', '08', '01'),
cover: 'img/program-or-be-programmed.jpg'
},
{
name: "Historia de un fistro de la pradera",
price: 69,
pubdate: new Date("2000", "08", "01"),
cover:"http://www.canalextremadura.es/sites/default/files/imagecache/Imagen_audio_nodo/chiquito-de-la-calzada.jpg"
},
{
name: "Grandes obras del septimo arte",
price: 68,
pubdate: new Date("2001","02","01"),
cover:"http://3.bp.blogspot.com/_OhOVUDeXDaw/S5gbjQTzk-I/AAAAAAAAAA8/Nkw1fPrqW8c/s320/casco_oscuro.jpg"
}

]
}]);
RESOLVED, I tried again in mi pc using windows and worked without changing nothing, i was using laptop with linuxMint