JSFiddle - React, Tailwind, and code Playground

by epinapala

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script src="http://vitalets.github.io/angular-xeditable/dist/js/xeditable.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<link rel="stylesheet" href="http://vitalets.github.io/angular-xeditable/dist/css/xeditable.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.6.0/ui-bootstrap-tpls.min.js"></script>
<h4>Angular-xeditable Typeahead (Bootstrap 2 version)</h4>
<div ng-app="app" ng-controller="Ctrl">
  <a href="#" editable-text="user.state" e-typeahead="state.friendlyName for state in states | filter:$viewValue | limitTo:8">
    {{ user.state || 'empty' }}
  </a>
</div>

CSS

div[ng-app] { margin: 50px; }

JavaScript

var app = angular.module("app", ["xeditable", "ui.bootstrap"]);

app.run(function(editableOptions) {
  editableOptions.theme = 'bs2';
});

app.controller('Ctrl', function($scope, $filter) {
  $scope.user = {
    state: ''
  };

  $scope.states = [{"id":"1371393181637358","friendlyName":"getSellerListingFees-getSellerListingPayPalFees","version":"1.0.0"},{"id":"1707025424445797","friendlyName":"SellerPerformanceCoreServices-getSellerListingFees","version":"1.0.0"}]
});