<!DOCTYPE html>
<html>
<head>
<title>Wikitechy AngularJS Tutorials</title>
</head>
<script
src="https://ajax.googleapis.com/ajax/libs/
angularjs/1.5.6/angular.min.js">
</script>
<body>
<div ng-app="myApp" ng-controller="filterCtrl">
<h2> Wikitechy filter in AngularJS </h2>
<ul>
<li ng-repeat="x in flowers| filter : 'o' ">
{{x}}
</li>
</ul>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('filterCtrl', function($scope) {
$scope.flowers = ["Lily", "Rose", "Jasmine","Poppy"];
});
</script>
</body>
</html>