⚠️ Since version 1.0.7,ngx-serializerandts-serializerhave been published under@paddlsnamespace. We continue to maintain@witty-servicesnamespace, but now,ngx-serializerdepends on@paddls/ts-serializer
NgxSerializer is an angular wrapper of ts-serializer library. You can get more infos on TS Serializer library documentation page.
npm i @paddls/ngx-serializerAngular |
NgxSerializer |
|---|---|
19.0.0 and above |
7.0.0 and above |
18.0.0 and above |
6.0.0 and above |
17.0.0 and above |
5.0.0 and above |
16.0.0 and above |
4.0.0 and above |
15.0.0 and above |
3.0.0 and above |
14.0.0 and above |
2.0.0 and above |
8.0.0 and above |
1.0.0 and above |
bootstrapApplication(AppComponent, {
providers: [
provideNgxSerializer()
]
}).catch((err: Error) => console.error(err));
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
public constructor(serialize: NgxSerializerService) {
}
}You can also use serialize, serializeAll, deserialize and deserializeAll rxJS operators in your observables.