Ng-select: What to remove in V3 release?

Created on 15 Oct 2018  路  1Comment  路  Source: ng-select/ng-select

Before making V3 breaking change release I would like to get you opinion about functionality which we could remove in V3 release.

Initial list:

  • [ ] [Highlight](https://github.com/ng-select/ng-select/blob/master/src/ng-select/ng-option-highlight.directive.ts) can be easily implemented by user itself and this is something that really doesn't add much value. This could be deprecated and removed in V3.
  • [ ] Remove <ng-option> tag. Currently there are two ways of setting data. Using [items] input and ng-option tag with *ngFor. It adds a lot of extra complexity.

Most helpful comment

Hi. Please do not remove <ng-option> tag. Angular encourages and promotes declarative syntax in the templates. With <ng-option> I can easily create simple selects, for example:

<ng-select [(ngModel)]="order">
  <ng-option [value]="1">A to Z</ng-option>
  <ng-option [value]="-1">Z to A</ng-option>
</ng-select>

I don't want to create an array of objects in component's controller for such simple use-case.

>All comments

Hi. Please do not remove <ng-option> tag. Angular encourages and promotes declarative syntax in the templates. With <ng-option> I can easily create simple selects, for example:

<ng-select [(ngModel)]="order">
  <ng-option [value]="1">A to Z</ng-option>
  <ng-option [value]="-1">Z to A</ng-option>
</ng-select>

I don't want to create an array of objects in component's controller for such simple use-case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jsgoupil picture jsgoupil  路  3Comments

gitlines picture gitlines  路  4Comments

musman92 picture musman92  路  3Comments

penihel picture penihel  路  4Comments

tomasz-nowakowski picture tomasz-nowakowski  路  4Comments