Angular filter

Size
2,109 Kb
Views
32,384

How do I make an angular filter?

What is a angular filter? How do you make a angular filter? This script and codes were developed by Susanne Karin Lundblad on 13 September 2022, Tuesday.

Angular filter Previews

Angular filter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Angular filter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div ng-app=""> <div ng-init="friends = [{name:'John', phone:'555-1276'}, {name:'Mary', phone:'800-BIG-MARY'}, {name:'Mike', phone:'555-4321'}, {name:'Adam', phone:'555-5678'}, {name:'Julie', phone:'555-8765'}, {name:'Juliette', phone:'555-5678'}]"></div> <h1>Angular filter</h1> <p>From Angular Api <a href="https://bit.ly/1orfZFD">docs</a></p> <input type="text" placeholder="Find the friend" ng-model="searchText"> <ul> <li ng-repeat="friend in friends | filter:searchText">You can reach <strong>{{ friend.name }}</strong> at <strong>{{ friend.phone }}</strong></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.5/angular.min.js'></script>
</body>
</html>

Angular filter - Script Codes CSS Codes

html, body { margin: 20px auto; display: block; max-width: 600px; text-align: center; height: 100%; background-color: #ecf0f1;
}
body { padding: 20px; position: relative;
}
h2, a, p, *:before, h1, li { font-family: "Helvetica Neue", sans-serif; font-weight: 300;
}
ul { overflow: hidden; text-align: left; width: 50%; margin: 30px auto;
}
li { color: #2c3e50; line-height: 2;
}
h1 { color: #3498db;
}
p { display: block; width: 100%; color: #2c3e50; clear: both;
}
a { color: #2c3e50; transition: color 0.2s ease-out;
}
a:hover { color: #2ecc71;
}
input { border: 1px solid #CCC; font-size: 1em; height: 40px; border-radius: 4px; width: 60%; transition: border 0.2s ease-out; padding: 0 0.75em; display: block; margin: 2.5em auto 0.5em; -webkit-appearance: none;
}
input:hover { border: 1px solid #9B9B9B;
}
input:focus { outline: none; border-color: black;
}
Angular filter - Script Codes
Angular filter - Script Codes
Home Page Home
Developer Susanne Karin Lundblad
Username SusanneLundblad
Uploaded September 13, 2022
Rating 3
Size 2,109 Kb
Views 32,384
Do you need developer help for Angular filter?

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!

Susanne Karin Lundblad (SusanneLundblad) Script Codes
Create amazing marketing copy 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!