AngularJS filtered checklist directive

Size
2,732 Kb
Views
4,048

How do I make an angularjs filtered checklist directive?

What is a angularjs filtered checklist directive? How do you make a angularjs filtered checklist directive? This script and codes were developed by Edward R Haase on 13 January 2023, Friday.

AngularJS filtered checklist directive Previews

AngularJS filtered checklist directive - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>AngularJS filtered checklist directive</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='http://cdnjs.cloudflare.com/ajax/libs/animate.css/2.0/animate.min.css'>
<link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> div.container(ng-cloak, ng-app='app' ng-controller='MyCtrl') .row: input(type='text' ng-model='search' placeholder='filter') .row pre: {{search}} // my-filtered-checklist(collection='filteredItems') button Set all table tr(ng-repeat='item in (filteredItems = (items | filter:search)) track by $index') td input(type='checkbox' ng-model='item.checked') label {{item.name}} // ng-model='$parent.checked[item]') .row div(ng-repeat='item in filteredItems') {{item}} div(ng-repeat='(k,p) in checked') | {{k}} => {{p}} <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-touch.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.20/angular-animate.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.10.0/ui-bootstrap-tpls.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

AngularJS filtered checklist directive - Script Codes CSS Codes

[ng-cloak] { display: none !important;
}

AngularJS filtered checklist directive - Script Codes JS Codes

var app = angular.module('app', ['ngTouch', 'ui.bootstrap']);
app.controller('MyCtrl', ['$scope', function($scope) { // angular.extend($scope, { }); console.log('new controller'); $scope.items = [ {name: 'one'}, {name: 'two'}, {name: 'three'} ]; $scope.checked = {};
}]);
app.directive('myFilteredChecklist', function() {	return { restrict: 'E', scope: { available: '=collection' }, transclude: false	};
});
AngularJS filtered checklist directive - Script Codes
AngularJS filtered checklist directive - Script Codes
Home Page Home
Developer Edward R Haase
Username ehaase
Uploaded January 13, 2023
Rating 3
Size 2,732 Kb
Views 4,048
Do you need developer help for AngularJS filtered checklist directive?

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!

Edward R Haase (ehaase) Script Codes
Create amazing sales emails 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!