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 trialDaniel Hildreth
16,170 PointsTwo-Way Binding: NgClick Challenge Help
I'm having trouble yet again with AngularJS. In thw NgClick challenge, it asks me to "Create a button that calls the function etPhoneHome and passes along the galaxy variable when it is clicked." I thought what I had wa right, but it was telling me I was wrong and that I needed to create a button element. Can someone help me?
<!DOCTYPE html>
<html ng-app="myApp">
<head>
<title>Angular.js</title>
<script src="js/angular.js"></script>
<script src="app.js"></script>
</head>
<body ng-controller="myController">
<button ng-click="etPhoneHome(galaxy)>Galaxy</button>
</body>
</html>
Daniel Hildreth
16,170 PointsDaniel Hildreth
16,170 PointsI figured it out everyone. I forgot to add in my quotation marks. So if anyone else needs help to this challenge this is what it should look like:
<button ng-click="etPhoneHome(galaxy)">Galaxy</button>