Angular js 9/11 is not recognizing the my new Like property


#1

$scope.products = [
{
name: 'The Book of Trees',
price: 19,
pubdate: new Date('2014', '03', '08'),
cover: 'img/the-book-of-trees.jpg',
like:0
},


#2

it's not like which is ask for but likes try by adding a s at the end of your like


#3
            $scope.products = [
              {
              name: 'The Book of Trees',
              price: 19,
              pubdate: new Date('2014', '03', '08'),
              likes:0,
              cover: 'img/the-book-of-trees.jpg'
            },
              {
              name: 'Program or be Programmed',
              price: 8,
              pubdate: new Date('2013', '08', '01'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            },
              {
              name: 'One Indian Girl',
              price: 149,
              pubdate: new Date('2016', '12', '25'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            },
              {
              name: 'Half Girlfriend',
              price: 149,
              pubdate: new Date('2016', '12', '25'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            }

Worked


#4
            $scope.products = [
              {
              name: 'The Book of Trees',
              price: 19,
              pubdate: new Date('2014', '03', '08'),
              likes:0,
              cover: 'img/the-book-of-trees.jpg'
            },
              {
              name: 'Program or be Programmed',
              price: 8,
              pubdate: new Date('2013', '08', '01'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            },
              {
              name: 'One Indian Girl',
              price: 149,
              pubdate: new Date('2016', '12', '25'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            },
              {
              name: 'Half Girlfriend',
              price: 149,
              pubdate: new Date('2016', '12', '25'),
              likes:0,
              cover: 'img/program-or-be-programmed.jpg'
            }

#5

I've added this property at the end of each product element in the products array but did not work.

It looks like the app is validating by looking to ensure that
the property 'likes:0' is before cover property. After making this change, it started working