Angular todo list test
How do I make an angular todo list test?
Just learning angular, nothing to see here.. What is a angular todo list test? How do you make a angular todo list test? This script and codes were developed by Sheodox on 26 December 2022, Monday.
Angular todo list test - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Angular todo list test</title>
</head>
<body> <div ng-app='Todo' ng-controller='TodoController as todoCtrl'> <form ng-submit='todoCtrl.addTodo()'> <input ng-model='todoCtrl.todoInput' /> <input type='submit' value='Add Todo' /> </form> <ul> <li ng-repeat='todo in todoCtrl.todos'>{{todo}}</li> </ul>
</div> <script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Angular todo list test - Script Codes JS Codes
(function(){ var app = angular.module('Todo', []) app.controller('TodoController', function(){ var c = this; c.todos = ['test']; c.addTodo = function(){ if (c.todoInput.length){ c.todos.unshift(c.todoInput); c.todoInput = ''; } }; return c; });
})();
Developer | Sheodox |
Username | sheodox |
Uploaded | December 26, 2022 |
Rating | 3 |
Size | 1,664 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Youtube video time counter. | 1,797 Kb |
Customizable Loading Indicator | 2,558 Kb |
Pretty print JSON | 1,833 Kb |
Format time function | 1,546 Kb |
Click counter | 2,028 Kb |
Remove JavaScript event handlers from HTML | 2,095 Kb |
WIP pulsing loading bar | 1,881 Kb |
Cool squares. | 1,894 Kb |
Clean Dialog | 2,484 Kb |
Pure Libs | 2,656 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Rainbow Drops | Csbarnes | 2,365 Kb |
Gradients | Karpovsystems | 2,394 Kb |
A Different Type of Gallery | DonPage | 2,950 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
FCC Portfolio | Cmwebby | 4,304 Kb |
About Us | Francescaedits | 1,902 Kb |
Horizontal slider on scroll | Alojzije | 2,672 Kb |
Minimal Menu | Achudars | 3,430 Kb |
Glitchy Text Effect | Kescoe | 2,208 Kb |
Collapsing Widget | Er40 | 4,279 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!