gbv / ng-suggest Goto Github PK
View Code? Open in Web Editor NEWAngularJS module to provide Typeahead via OpenSearch Suggestions
Home Page: http://gbv.github.io/ng-suggest/
AngularJS module to provide Typeahead via OpenSearch Suggestions
Home Page: http://gbv.github.io/ng-suggest/
At the start page
Include link to SeeAlso-Specification
Include version, author, and download link
Show tiny example (SeeAlso)
div seealso-server=¨...¨ seealso-id=¨...¨
At directives
if <
, >
, and/or &
are used in a label and this label is selected.
seems to be missing
As included in the API documentation. Example could also be used from other application, for instance http://verbrannte-und-verbannte.de/person/163 (see https://github.com/jlewis91/codingdavinci/blob/master/php/resources/view/person.detail.twig for use of the old SeeAlso JavaScript-client).
<head>
<script src="http://gbv.github.io/ng-suggest/js/angular.min.js"></script>
<script src="http://gbv.github.io/ng-suggest/grunt-scripts/ng-suggest.min.js"></script>
<script>angular.module('myApp',['ngSuggest']);</script>
</head>
<body>
<div ng-app="myApp">
<div>
<div seealso-api="http://beacon.findbuch.de/seealso/pnd-aks/-verbrannte" jsonp=1
seealso-id="124730760"/>
</div>
</div>
</body>
More projects that happen to use the old seealso.js: https://github.com/magnusgruentisch/gndpersondbpy
This should be enough:
<input
ng-model="value"
suggest-typeahead="https://en.wikipedia.org/w/api.php?action=opensearch&limit=10&namespace=0&format=json&search="
jsonp />
A corresponding typeahead
directive should be added automatically.
<!-- comma-separated -->
<span seealso-api="http://example.org/" seealso-id="123"/>
<!-- list -->
<ul seealso-api="http://example.org/" seealso-id="123"/>
<ol seealso-api="http://example.org/" seealso-id="123"/>
<!-- image -->
<img seealso-api="http://example.org/" seealso-id="123"/>
<!-- custom template -->
<div seealso-api="http://example.org/" seealso-id="123">
...
</div>
<!-- custom template, referenced -->
<div seealso-api="http://example.org/" seealso-id="123" template-url="..." />
At least basic functionality should be covered by unit tests. By now, the testing framework is set up only to detect errors in the build process.
Right now the demo only works as local copy.
as done with ng-skos
grunt ng-docs 0.2.7 supports links to source code
As suggested in #6
to avoid dependency on ui.bootstrap.typeahead
See for instance the tagging input at StackExchange. A comma- or space-separated list of tags can be edited in an input field while tags are suggested and explained.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.