Angularjs autocomplete JSON - json

I'm very new to Angular and I've been doing tutorials and reading books. I'm trying to get an autocomplete from a JSON result. I got the JSON result to iterate over a table, but I need to be able to search with autocomplete based off of that same JSON result.
I have a Plnkr below. Any help would be greatly appreciated.
http://plnkr.co/edit/VObrSPu94rS3dGyVqaXk

If you pop open your developer console, you'll see that there is an error being thrown from your ngAutocomplete.js file. It looks like that directive is designed to be used for Google Places and is expecting you to have a Google library loaded as well.
You probably want to look for a more generic autocomplete directive. The only one I've used is the typeahead included in the Angular UI Bootstrap project, but there are a number of autocomplete modules on the Angular Modules site (the one you are using is the second one listed) that may work for you.

As Sean says, Angular UI Bootstrap (Typeahead) is a good option.
Here is a specific tutorial for that feature from my project.

Related

How to Use UI-tour in Angular 6

Anyone have an idea which is the library to use UI-tour or walkthrough in angular application. I don't find any valid library except ng-walkthrough.
My need is the one where we can have more flexibility and supportability with the library.
I have tried with ngx-bootstrap-product-tour but it did not work for me. whenever I click on it to start the tour, it's not reflecting anything, I don't see any error or any other problem.
If any suggestions, please let us know.
https://stackblitz.com/edit/angular-onboarding-overlay
The above link worked for me - the same purpose that you are looking for. The above example uses Angular Material CDK and Overlay to achieve this.
Please find more useful links below that can even support for Angular 6.
https://www.npmjs.com/package/ngx-joyride (Pretty Straight Forward)
https://isaacplmann.github.io/ngx-tour/
(https://introjs.com/) . https://www.freakyjolly.com/angular-7-6-adding-walk-through-introduction-tour-plugin-for-step-by-step-tutorial-in-angular-2-applications/
use bootstrap tour library.
here is a bootstrap tour for angular - https://www.npmjs.com/package/ngx-bootstrap-product-tour
demo & docs - https://nmilicic.github.io/ngx-bootstrap-product-tour/

Swagger to HTML converter with results like Strava or Paypal

I've been search for a couple of months now for nice swagger to HTML converter and I can't seem to find anything that will generate something that looks like the Strava API reference (https://strava.github.io/api/v3/routes/#list) or the Paypal API reference (https://developer.paypal.com/docs/api/payments.billing-plans#plan_create).
They are not the only one with this template so I'm guessing it's an HTML generator that I just couldn't find with my google search skills. Anybody knows how to generate doc looking like this without coding it yourself?
Given that you already have the Swagger/OpenAPI spec, you can use Swagger Codegen to generate documentation.
Go to https://editor.swagger.io
Import your Swagger spec under "File" in the top menu
Under "Generate Client" in the top menu, select Html2 (preferred), HTML or dynamic HTML.
(https://editor.swagger.io leverages https://generator.swagger.io to generate code and https://generater.swagger.io is powered by swagger-codegen)

Extend Markdown Parser to render custom code blocks

I am building a static blog, which uses Marked to parse markdown. I want to be able to have code blocks with tabs.
I want to parse code that looks like this:
```JavaScript
var geolocation = require("nativescript-geolocation");
```
```TypeScript
import geolocation = require("nativescript-geolocation");
```
To something like this (from the angular2 docs), where the tab names would be JavaScript and TypeScript.
I am programming in JavaScript (nodeJs), so I could manually render this if required? What would a custom implementation of a code block tab look like?
I am not sure if there is a special name for these, as I can't really seem to find any examples or templates.
I think answer is: 'Marked' does not support custom tags. I've spend few hours trying to find some way to extend it and finally switched to showdown.
It appears to be really easy to implement one ( her is expandable section tag example ).
Extension 'showdownjs/prettify-extension' implements code highlighting using Google Prettify.

wikipedia template data api

I want to download the template source used in a wikipedia page (basically for generating the display text of a key). SO i am basically want this info
http://en.wikipedia.org/w/index.php?title=Template:Infobox%20cricketer&action=edit
for Template:Infobox cricketer
I have found an api for wikipedia called Template data
http://www.mediawiki.org/wiki/Extension:TemplateData
But the examples given:
http://en.wikipedia.org/w/api.php?action=templatedata&titles=Template:Stub
does not seem to work.
I think you misunderstood what Extension:TemplateData is for. It's for getting metadata about a template, which only works if that template provides those metadata.
If what you want the text of the template, you should use prop=revisions&rvprop=content, for example:
http://en.wikipedia.org/w/api.php?action=query&titles=Template:Infobox%20cricketer&prop=revisions&rvprop=content

Implementing autocomplete in HTML input

I devise a web site. I am using PHP, XML and HTML. There is input forms in my HTML files and I want to implement auto-suggestion in input forms.
When you enter search phrase to google's input form, many suggestions appeared in your browser. I exactly want to implement this.
What must I do? Which language/interface/information I need to?
thanks in advance.
Autocomplete is done via JavaScript. Check out the jQuery Autocomplete plugin for a pretty easily library to get started with. You can either include the values to be used for autocomplete in the JavaScript, or you can make an AJAX request to a PHP script which provides suggestions. Feel free to comment if you'd like more help.
This will be the easiest way to get it done...
http://jqueryui.com/demos/autocomplete/
JQuery UI is a javascript framework that has a nice autocomplete implementation: http://jqueryui.com/demos/autocomplete/
Of course you will need the jquery and jquery ui javascript frameworks.