JSFiddle - React, Tailwind, and code Playground
by Michele Marcucci
HTML
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular-sanitize.js"></script>
<div ng-app="myApp" ng-controller="dummy">
<p ng-repeat="option in out.options | limitTo:2">{{option.text}} - {{option.score}}</p>
</div>
JavaScript
angular.module('myApp', [])
.controller('dummy', ['$scope', '$sce', function ($scope, $sce) {
$scope.out = {
"options": [{
"text": "python",
"score": 0.12858662
}, {
"text": "linux",
"score": 0.12858662
}, {
"text": "php",
"score": 0.12858662
}, {
"text": "js",
"score": 0.12858662
}, {
"text": "java",
"score": 0.12858662
}]
};
}]);