Created
November 10, 2014 13:19
-
-
Save pankajpatel/5507df91f7f51dff7432 to your computer and use it in GitHub Desktop.
ToDo App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="list-group"> | |
<li class="list-group-item clearfix task"> | |
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | |
tempor incididunt ut labore et dolore magna aliqua.</p> | |
<div> | |
<span class="pull-right"> | |
<button class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></button> | |
<button class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-ok"></span></button> | |
<button class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></button> | |
</span> | |
</div> | |
</li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form"> | |
<div class="input-group"> | |
<input type="text" class="form-control"> | |
<span class="input-group-btn"> | |
<button class="btn btn-default" type="button"> | |
<span class="glyphicon glyphicon-plus"></span> Add Task</button> | |
</span> | |
</div><!-- /input-group --> | |
</div> | |
<hr/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body ng-app="toDoApp"> | |
<div class="container" ng-controller="ToDoController"> | |
<div class="col-xs-12 col-sm-12 col-md-offset-3 col-md-5 col-lg-offset-3 col-lg-5"> | |
<h2>ToDo App</h2> | |
<!-- Form Starts Here --> | |
<div class="form"> | |
<div class="input-group"> | |
<input type="text" class="form-control" ng-model="task"> | |
<span class="input-group-btn"> | |
<button class="btn btn-default" type="button" ng-click="addTask()" | |
><span class="glyphicon glyphicon-plus"></span> Add Task</button> | |
</span> | |
</div> | |
</div> | |
<hr/> | |
<!-- Form Ends Here --> | |
<!-- Task List Starts Here --> | |
<ul class="list-group" ng-show="tasks.length > 0"> | |
<li class="list-group-item clearfix task" ng-repeat="todo in tasks"> | |
<p class="lead">{{todo.task}}</p> | |
<div> | |
<span class="pull-right"> | |
<button class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil" | |
ng-click="editTask($index)"></span></button> | |
<button class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-ok" | |
ng-click="doneTask($index)"></span></button> | |
<button class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove" | |
ng-click="deleteTask($index)"></span></button> | |
</span> | |
</div> | |
</li> | |
</ul> | |
<!-- Task List Ends Here --> | |
</div> | |
</div> | |
<script src="js/angular.min.js"></script> | |
<script src="js/app.js"></script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment