Socket
Socket
Sign inDemoInstall

angular2-metric-conversion-pipes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-metric-conversion-pipes

metric-conversion-pipes directive for angular2


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Angular2 Metric Conversion Pipes

The sources for this package are in (https://github.com/vimalavinisha/angular2-image-popup) repo. Please file issues and pull requests against this repo.

Demo Output

angular2-image-popup popup ##Usage node install npm install angular2-metric-conversion-pipes bower install bower install metric-conversion-pipes ###2.component file use like below import {Component} from 'angular2/core'; import {TempConversions,MassConversions,LengthConversions} from '../directives/angular2-metric-conversion-pipes/index'; @Component({ selector : 'my-app', pipes: [TempConversions,MassConversions,LengthConversions], template: <h3> TempConversions - Example </h3> <p> Supported TempConversions pipes- C-F, C-K, F-C, F-K, K-F, K-C </p> <span> C -> Celsius, F -> Fahrenheit , K-> Kelvin <h5> Celsius To Fahrenheit Conversion: {{temperature | TempConversions:'C-F':1}}</h5> <h3> Mass/Weight Conversions - Example </h3> <p> Supported Mass/Weight pipes- g-kg, g-lb, g-oz, kg-g, kg-lb, kg-oz, lb-g, lb-kg, lb-oz, oz-g, oz-kg,oz-lb</p> <span> g -> Gram, kg-> KiloGram , lb -> Pound, oz -> Ounce </span> <h5> Weight Kg to LB Conversion: {{ mass| massConversions:'kg-lb':2}}</h5> <h3> LengthConversions - Example </h3> <p> Supported LengthConversions pipes- FT-CM, FT-M, FT-IN, FT-MI, FT-YD, IN-FT, IN-M, IN-MI, IN-YD, IN-CM, CM-FT,CM-IN, CM-M, CM-YD, CM-MI, M-FT, M-IN, M-CM, MI-IN, MI-FT, MI-CM, YD-FT, YD-IN, YD-CM</p> <span> CM -> Centimeter, M -> Meter , IN-> Inches , FT -> Foot(Feet), MI -> Mile, YD -> Yard </span> <h5> LengthConversions from CM to Inches: {{length | lengthConversions:'CM-IN':3}} </h5>
}) export class AppComponent { temperature:number = 20; mass:number = 47; length:number = 157; }

Keywords

FAQs

Package last updated on 28 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc