client/app/services/GoatsService.js
// Creating a new goat entry based on user input.
Creating a new goat entry based on user input.
Creating a new goat entry based on user input .
createGoat(goat) {
            const {name, age, about, photo} = goat;
            const tempGoat = {
                about,
                photo,
                name,
                age
            };
            goats.push(tempGoat);
        }
createGoat ( goat ) { const { name , age , about , photo } = goat ; const tempGoat = { about , photo , name , age } ; goats . push ( tempGoat ) ; }
Creating a new goat entry based on user input.
Creating a new goat entry based on user input .