Please Explain this to me with easy and detail? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please Explain this to me with easy and detail?

<!DOCTYPE HTML> <html ng-app="todoApp"> <head> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body> <h2>To-Do App</h2> <div ng-controller="todoList"> <span>Items: {{todos.length}}</span> <ul> <li ng-repeat="todo in todos"> <label class="checkbox"> <input type="checkbox" ng-model="true"> <span class="done-{{todo.done}}">{{todo.text}}</span> </label> </li> </ul> <form ng-submit="addTodo()"> <input type="text" ng-model="todoText" size="30" placeholder="add new todo here"> <input type="submit" value="add"> </form> </div> <script> var app = angular.module('todoApp', []); app.controller('todoList', function($scope) { $scope.todos = [ {text:'Learn AngularJS', done:true}, {text:'build an AngularJS app', done:false}]; $

13th Apr 2019, 8:28 PM
Hari Krishnan. T
Hari Krishnan. T - avatar
1 Answer
0
The code is not complete!
21st Apr 2019, 8:46 AM
Kartik
Kartik - avatar