We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
install froiden-angular2-select package in your angular application using
npm install --save froiden-angular2-select
In systemjs.config.js add froiden-angular2-select to map and package:
systemjs.config.js
froiden-angular2-select
var map = { // others..., 'froiden-angular2-select': 'node_modules/froiden-angular2-select' }; var packages = { // others..., 'froiden-angular2-select': { main: 'angular2-select.js', defaultExtension: 'js' } };
Import the SelectModule and define it as one of the imports of your application module:
SelectModule
import {NgModule} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser'; import {FormsModule} from '@angular/forms'; import {SelectModule} from 'froiden-angular2-select/angular2-select'; import {AppComponent} from './app.component'; @NgModule({ imports: [ BrowserModule, FormsModule, SelectModule ], declarations: [ AppComponent ], bootstrap: [ AppComponent ] }) export class AppModule { }
Add the following HTML to the component template in which you want to use the select component: