Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


etPhoneHome galaxy

Challenge Task 1 of 1

Create a button that calls the function etPhoneHome and passes along the galaxy variable when it is clicked.

Link to Challenge: http://teamtreehouse.com/library/angularjs-2/an-introduction-to-twoway-data-binding/twoway-binding-ngclick

This is so messed up!

I searched the whole teamtreehouse forum for the above two keywords and found nothing

(so here's the missing thread for anyone else who does the same..)

Basically you just need one line of code.

About time index 01:54 of this video you'll find something similar to what you need: http://teamtreehouse.com/library/angularjs/an-introduction-to-twoway-data-binding/responding-to-user-input

But then go looking for that code in the downloadable zip file for the course and good luck!

They divided the zip file contents into folders with different 'stage' numbers (basically Stage 1 through Stage 6)

So which 'stage' was the code for that video in? Who knows --I looked through the index.html for all the stages and didn't find the code.

So I had to MANUALLY transcript this line of code:

<button> ng-click="edit(person)">Edit</button>

..and that's not even the code that the challenge is look for!!!

(just the most similar code I could find in the videos)


Here's the actual stupid line needed:

<button ng-click="etPhoneHome(galaxy)">ThisIsStupid!!!</button>

..what I won't do for 12 lousy points.. :stuck_out_tongue_winking_eye: