Call Us Today! +91 8069195500 | +1 (302) 520-2820|sales@codestoresolutions.com

Build a ToDoApp using AngularJS

ToDoApp using AngularJS

Welcome to my blog on AngularJS, Here I will develop a “ToDo App” using angular.
Technologies to be used:
1.HTML
2.Bootstrap
3.AngularJS
4.toastr
5.Kendo UI
So Let’s Start, Please follow the steps below.

STEP: 1 : Create new project

STEP: 2 : Select ASP.Net Web Application Named TODoAppAngularJS.

STEP: 3 Select Empty Template.

STEP: 4: You will see the below screen now.

STEP: 5. Add New HTML Page.

STEP: 6 – Now add a HTML file and name it “index.html”



Step 7
: Download AngularJS library from https://angularjs.org/ and reference it.

Step 8: Now Add a JavaScript file to do code in it named “App.js”

Now Let’s Code.
First of All, We will design our UI like below image:

So now add all reference files and libraries.

<div

class=“container”>


<div

class=“row Gheader”> <h4 class=“text-center”>*** A ToDo App ***


<div

ng-controller=“toDoCtrl”> <div class=“row”> <div class=“panel panel-primary”> <div class=“panel-heading”> CREATE TASK

<div

class=“panel-body”> <div class=“row”> <div class=“col-md-4”> TASK <input type=“text” ng-model=“task” placeholder=“Task Name*” class=“form-control”/>

<div

class=“col-md-4”> TIME <input class=“form-control” kendo-date-time-picker ng-model=“time” k-ng-model=“time” style=“width: 100%;”/>

<div

class=“col-md-4”> DONE BY <input type=“text” ng-model=“doneBy” placeholder=“Done By*” class=“form-control”/>

<div

class=“row” style=“margin-top: 2%;”> <div class=“col-md-8”>

<div

class=“col-md-2”> <button type=“button” ng-click=“addTask()” class=“btn btn-success btn-block”>SAVE

<div

class=“col-md-2”> <button type=“button” ng-click=“clearAll()” class=“btn btn-danger btn-block”>CLEAR

<div

class=“row”> <table class=“table table-bordered table-hover table-responsive”>

TASK

TIME

DONE BY

<tr ng-repeat=“task in taskList”>

{{task.task}}

{{task.time}}

class=“glyphicon glyphicon-user”> {{task.doneBy}}

<button type=“button” ng-click=“deleteTask($index)” class=“btn btn-danger”> <i class=“glyphicon glyphicon-trash”>

<div

class=“row Gfooter”> <div class=“col-md-6”> <h5 style=“font-family: verdana;” class=“text-center”>Codestore Technologies Pvt. Ltd. (NOIDA, U.P)

<div

class=“col-md-6”> <h5 style=“font-family: verdana;” class=“text-center”> Developed By: Gopal Sharma (Software Engineer)

Now write code in “App.js” file to make it fully functional.

Go to Top