Angular Sample App with Semantic UI

Developer
Size
3,545 Kb
Views
80,960

How do I make an angular sample app with semantic ui?

What is a angular sample app with semantic ui? How do you make a angular sample app with semantic ui? This script and codes were developed by Icebob on 12 June 2022, Sunday.

Angular Sample App with Semantic UI Previews

Angular Sample App with Semantic UI - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Angular Sample App with Semantic UI</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> doctype html
html(ng:app) head title Angular Sample TODO App script(src="http://code.angularjs.org/angular-0.9.18.min.js", ng:autobind) link(rel="stylesheet", href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.11.0/css/semantic.min.css") body div.container(ng:controller="TodoCtrl") h2.ui.header i.ui.icon.tasks |Angular Sample App div.ui div.ui.segment(ng:repeat="todo in todos") div.ui input(type="checkbox", name="todo.done") label(ng:class="'done-' + todo.done") {{todo.text}} form.ui.form.segment(ng:submit="addTodo()") div.ui.action.input input(type="text", name="todoText", size="35", placeholder="Enter your todo text") div.ui.button.submit(ng:click="addTodo()") Add div.ui.segment div.ui.label |Remaining i.file.icon {{remaining()}} br br div.ui.button.blue(ng:click="removeDone()") clean <script src="js/index.js"></script>
</body>
</html>

Angular Sample App with Semantic UI - Script Codes CSS Codes

body { background-color: #EEE;
}
.done-true { text-decoration: line-through; color: gray;
}
h2:before { content: url("https://cdn1.iconfinder.com/data/icons/pc_de_hamburg_icon_pack/32x32/lightbulb.png");
}

Angular Sample App with Semantic UI - Script Codes JS Codes

(function() { window.TodoCtrl = function() { var scope; scope = this; scope.todos = [ { text: "Todo #1", done: true }, { text: "Todo #2", done: false } ]; scope.addTodo = function() { scope.todos.push({ text: scope.todoText, done: false }); return scope.todoText = ""; }; scope.remaining = function() { return angular.Array.count(scope.todos, function(todo) { return !todo.done; }); }; return scope.removeDone = function() { var oldTodos; oldTodos = scope.todos; scope.todos = []; return angular.forEach(oldTodos, function(todo) { if (!todo.done) { return scope.todos.push(todo); } }); }; };
}).call(this);
Angular Sample App with Semantic UI - Script Codes
Angular Sample App with Semantic UI - Script Codes
Home Page Home
Developer Icebob
Username icebob
Uploaded June 12, 2022
Rating 3.5
Size 3,545 Kb
Views 80,960
Do you need developer help for Angular Sample App with Semantic UI?

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!

Icebob (icebob) Script Codes
Create amazing web content with AI!

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!