Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

111
Visualizações
Angular expression to use javascript filter

Suppose I have a array of object like this below.

ObjLevel: Array(4)
0: {permissionLevelOnUserId: 'e9ab78a5-09ed-4051-a380-1dbc65feb04a', isChecked: true, mode: 'R'}
1: {permissionLevelOnUserId: '0b34dfe7-859d-48f4-bcd6-30c2f92e61da', isChecked: true, mode: 'RWD'}
2: {permissionLevelOnUserId: '912b29a7-081c-4400-bddd-70a7d60000a2', isChecked: true, mode: 'RW'}
3: {permissionLevelOnUserId: 'b7cf6cf7-7ae1-447a-acce-70f31f02921c', isChecked: true, mode: 'NA'}

Now what I want to achieve is that get any object property value using find or filter in the angular expression {{}} Now the thing is I can use *ngFor which is already running before this array object another array of object holds the above object which I don't want to use *ngFor the process i want to extract value from property is like this.

{{ ObjLevel?.find(i => i.mode === 'R').permissionLevelUserId }}

which gives me an error of course like this

Parser Error: Bindings cannot contain assignments at column 30 in [ {{section?.ObjLevel?.find(i => i.mode === 'R').permissionLevelUserId}} ]

How can i achieve this without getting into typescript page and only operating in the HTML page itself.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda