<!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="jsonCtrl">
<h2> Wikitechy json filter in AngularJS </h2>
<pre> {{ flowers | json : 5 }}</pre>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('jsonCtrl', function($scope) {
$scope.flowers = ["Lily", "Rose", "Jasmine","Poppy"];
});
</script>
</body>
</html>