Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

110
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda