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

JavaScript AngularJS An Introduction to Two-Way Data Binding Two-Way Binding: ng-list

Brodie Capel
Brodie Capel
16,365 Points

whats should I be calling .tags on eg ng-model="somthing.tags"

This question ask me to Create a text input that stores a comma-separated list of tags into the 'tags' data property. but it doesn't specify what to call .tags on eg ng-model="somthing.tags"

index.html
<!DOCTYPE html>
<html ng-app="myApp">
<head>
  <title>Angular.js</title>
  <script src="js/angular.js"></script>
  <script src="app.js"></script>
</head>
<body>

  <input type="text"  ng-modle="tags" ng-list />
  <pre>{{tags | json}}</pre>

</body>
</html>

5 Answers

CJ Williams
CJ Williams
34,372 Points

This is not a very well organized course. Tough to follow along with.

Santiago Blanco
Santiago Blanco
2,939 Points
<textarea ng-model="tags" ng-list> <textarea/>
            ```

Sorry, Santiago,

Your code is not what the challenge was looking for,

but Rinat's code passes the challenge: http://teamtreehouse.com/library/angularjs-2/an-introduction-to-twoway-data-binding/twoway-binding-nglist

Challenge Task 1 of 1

Create a text input that stores a comma-separated list of tags into the 'tags' data property.

Note: See where I highlighted the word "input" in the challenge

question...that was the word that provided the hint about the

challenge wanted... :wink: