previousdeveloper / angular2-camelcase

Angular2 pipe to convert camelCase strings to human readable strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular2-camelCase

Angular2 pipe to convert camelCase strings to human readable strings

Installation

Npm

npm install angular2-camelcase

Usage

import {CamelCaseHumanModule} from 'angular2-camelcase';

@NgModule({
  declarations: [
    CamelCaseHumanModule
  ],
  ....
  
  })
  

HTML

<h1>
{{'helloWorldHowAreYouDoingIamUpper' | camelCaseToHuman:true}}
</h1>

<h1>
{{'helloWorldHowAreYouDoingIamLower' | camelCaseToHuman:false}}
</h1>

About

Angular2 pipe to convert camelCase strings to human readable strings


Languages

Language:TypeScript 54.6%Language:JavaScript 40.5%Language:HTML 4.2%Language:CSS 0.7%