Usage

Assemble the select directives in your template.

<div ngpSelect></div>

API Reference

The following directives are available to import from the @ng-primitives/ng-primitives/select package:

NgpSelectDirective

There are no inputs or outputs for this directive.

Global Configuration

You can configure the default options for all selects in your application by using the provideNgpSelectConfig function in a providers array.

import { provideNgpSelectConfig } from '@ng-primitives/ng-primitives/select';

bootstrapApplication(AppComponent, {
  providers: [provideNgpSelectConfig({})],
});

NgpSelectConfig

Schematics

You can use our schematic to generate a new select component.

ng generate @ng-primitives/ng-primitives:select

Options

name
string

The name of the component.

project
string

The name of the project to add the component to.

path
string

The path to create the component.