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 trialZe Yang
495 PointsLost my checkbox
I lost my checkbox ```<!doctype html> <html lang="en"> <head> <title></title> <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'> <link href='style/main.css' rel='stylesheet' type="text/css"> </head> <body ng-app="todoListApp"> <h1 ng-click="helloWorld()">My Todo</h1> <div ng-controller="mainCtrl" class="list">
<div class="item" ng-class="{'editing-item': editing,'edited':edited}" ng-repeat="todo in todos">
<input ng-model="todo.completed" type="checkbox" />
<input type="checkbox" />
<lable ng-hide="editing" ng-click="helloWorld()">{{todo.name}}</lable>
<input ng-change="todo.edited=true" ng-blur="editing=false;" ng-show="editing" ng-model="todo.name" class="editing-lable" type="text" />
<div class="actions">
<a href="" ng-click="editing=!editing">eidt</a>
<a href="" ng-click="helloConsole()">save</a>
<a href="" class="delete">delete</a>
</div>
</div>
{{todos}}
</div>
<script src="Vender/angular.js" type="text/javascript"></script>
<script src="scripts/app.js" type="text/javascript"></script>
<!-- <script src="scripts/hello-world.js" type="text/javascript"></script> --> </body> </html>
1 Answer
Steven Parker
231,275 PointsI'm not sure what you mean by "lost" it. Perhaps it would help to make a snapshot of your workspace and post a link to it.
This may not be related - but I notice you have a tag for lable
. You probably meant for that to be label
.
Ze Yang
495 PointsZe Yang
495 PointsThanks! Already fixed it. In my main.css, the checkbox is tagged as 'display:none' Thanks for fixing typo!