question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unicode / Character References displaying in ng-option

See original GitHub issue

Expected behaviour

Unicode / Character References are not displayed in ng-option

Actual behaviour

Unicode / Character Reference displaying in ng-option

More Info

ng-select version: 1,3.0 browser: Chrome Version 65.0.3325.181 (Official Build) (32-bit) reproducible in demo page: NO

<ng-select placeholder="Please select a Category" (change)="toggleCategories($event)"> <ng-option *ngFor="let i of cat_group" [value]="i.id" >{{ i.name }}</ng-option> </ng-select>

Results from console.log(this.cat_group); {id: 6, name: “House & Home”, category_type: “XX”} {id: 8, name: “Lifestyle & Tourism”, category_type: “YY”} {id: 4, name: “cat & cat”, category_type: “ZZ”}

I was using checkboxes up to now, and moving to a dropdown list so trying out ng-select.

image

Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andreypelykhcommented, Feb 18, 2019

@ElangoAS This solution worked for me:

<ng-select placeholder="Please select a Category" (change)="toggleCategories($event)" bindValue="id">
    <ng-template ng-label-tmp let-item="item">
        {{item.name}}
    </ng-template>
</ng-select>
0reactions
MeetRishabh03commented, Apr 23, 2019

Any work around for the above issue? I have ng-select and I am iterating through items

Read more comments on GitHub >

github_iconTop Results From Across the Web

using unicode symbols in ngOption <select> - Stack Overflow
This all works fine as static data, but when I try to pull the data from my DB it displays it as regular...
Read more >
UTS #18: Unicode Regular Expressions
Unicode is a large character set—regular expression engines that are only adapted to handle small character sets will not scale well.
Read more >
Accessing the Unicode™ Character Set via HTML Decimal ...
Generating and Rendering Unicode™ Characters in Your Browser Through HTML Decimal References. A Primer on Unicode and the Generator. The Generator.
Read more >
Unicode Symbol Reference - Microsoft
Unicode Symbol Reference. (with accented and Cyrillic characters). Microsoft Word: (1) cut and paste from here. (2) type the hexadecimal code and Alt-X....
Read more >
Unicode HOWTO — Python 3.11.1 documentation
Applications are often internationalized to display messages and output in ... The Unicode standard describes how characters are represented by code points.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found