0.0.7 • Published 1 month ago
@lightech-llc/case-converter v0.0.7
Lightech Angular Interceptor
This interceptor was created to work around Python BE and convert snake_cased
response to appropriate camelCase
and
backwards for payload.
Installation and setup
Run this command to install the package:
yarn add @lightech-llc/case-converter
Add this CASE_CONVERTER_PROVIDER
to the providers: []
list of the root module of your application:
import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {CASE_CONVERTER_PROVIDER} from '@lightech-llc/case-converter';
import {AppComponent} from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [CASE_CONVERTER_PROVIDER],
bootstrap: [AppComponent],
})
export class AppModule {}