https://github.com/paddls/ngx-serializer
Angular wrapper of @paddls/ts-serializer library
https://github.com/paddls/ngx-serializer
angular json serialization serialization-library strongly-typed typescript
Last synced: 2 months ago
JSON representation
Angular wrapper of @paddls/ts-serializer library
- Host: GitHub
- URL: https://github.com/paddls/ngx-serializer
- Owner: paddls
- License: mit
- Created: 2020-06-01T20:13:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-22T03:45:09.000Z (9 months ago)
- Last Synced: 2025-08-08T20:50:50.082Z (3 months ago)
- Topics: angular, json, serialization, serialization-library, strongly-typed, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@paddls/ngx-serializer
- Size: 1.72 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-angular - ngx-serializer - Angular wrapper of `@paddls/ts-serializer` library. (Framework Interoperability / Wrappers)
- awesome-angular - ngx-serializer - Angular wrapper of `@paddls/ts-serializer` library. (Framework Interoperability / Wrappers)
README
# NgxSerializer

[](https://badge.fury.io/js/%40paddls%2Fngx-serializer)





## Informations
> :warning: Since version 1.0.7, ```ngx-serializer``` and ```ts-serializer``` have been published under ```@paddls```
> namespace. We continue to maintain ```@witty-services``` namespace, but now, ```ngx-serializer``` depends
> on ```@paddls/ts-serializer```
## Summary
* [Introduction](#introduction)
* [Installation](#installation)
* [How to use](#how-to-use)
## Introduction
NgxSerializer is an angular wrapper of [ts-serializer](https://github.com/paddls/ts-serializer) library.
You can get more infos on TS Serializer library documentation page.
## Installation
```shell script
npm i @paddls/ngx-serializer
```
### Recommended Angular versions
| `Angular` | `NgxSerializer` |
|--------------------|-------------------|
| `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 |
## How to use
```typescript
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxSerializerModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
@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.**