Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
903 stars 357 forks source link

withDefaults not working with aot #495

Open altschuler opened 7 years ago

altschuler commented 7 years ago

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question

Current behavior

Using withDefaults work fine when using the jit, but when built with aot those defaults are ignored.

Expected behavior

The defaults provided in withDefaults should be used with both jit and aot compilation.

Angular version:

4.2.5

ng2-tag-input version:

1.4.6

Gbuomprisco commented 7 years ago

Difficult one :\ will check out

httpete commented 4 years ago

I am using the latest angular 9 and the latest version of ngx-chips, trying to globally configure the default theme:

TagInputModule.withDefaults({ tagInput: { theme: "ddf"}});

and the ts compiler says "ddf is not assignable to type "" .