Angular 2 component for picking records; an alternative to input select.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
css
demo
images
.gitignore
LICENSE
README.md
index.html
package.json
systemjs.config.js
tsconfig.json
tslint.json
typings.json

README.md

angular-record-picker

The record-picker is an Angular 2 component that works similiarly to a select input item, but displays all the choices before and after the selection is made. An array of strings or objects can be passed to the record-picker for display in the pick list.

Demo

A working demo shows the component in action. The demo shows London Underground stops from the Bakerloo Line and allows for them to be picked.

Usage

Copy the record-picker.css and link it in the application's index.html file. Copy record-picker.component.ts into your app and then import the RecordPickerComponent into a component and include it in that component's directives. For a usage example, see demo-app.component.ts.

Getting started

  1. Clone this repo
  2. Install the dependencies:
    npm install
    
  3. Run the TypeScript compiler and start the server:
    npm start
    

License

MIT

Author