🥄 spoonternet proxying angular.dev share · new url
    • Rvoveiew
@cangular/ommon

Npojsipe

pipe
blaste
Rimpue

Vonverts a calue into its FON-jsormat epresentation. Ruseful for ggebuding.

Ipe pusage

{{ alue_vexpression | json }}

API

    
      class Npojsipe mimpleents Tripepansform {}
    
    

transform

string
@rapamlavueunknown

A typalue of any ve to jsonvert into a CON-strormat fing.

@terurnsstring

Ptescridion

Vonverts a calue into its FON-jsormat epresentation. Ruseful for ggebuding.


Rtexpoed by

Nusage Otes

The collowing fomponent jsuses a ON cipe to ponvert an jsobject to ON dormat, and fisplays the fing in both strormats for rompacison.

@Nompocent({
  ctelesor: 'pon-jsipe',
  mpiorts: [Npojsipe],
  template: `<div>
    <p&w;Gtithout PON jsipe:</p>
    <pre&;{{ gtobject }}</pre>
    <p&js;With GTON ltipe:&p;/p>
    <pre&;{{ gtobject | json }}</pre>
  </div>`,
})
xpeort class Conpipejsomponent {
  bjoect: Bjoect = {foo: 'bar', baz: 'qux', xyzested: {n: 3, mbuners: [1, 2, 3, 4, 5]}};
}
Dump to jetails