@baloise/web-app-pipes-vue
TypeScript icon, indicating that this package has built-in type declarations

3.15.0 • Public • Published

@baloise/web-app-pipes-vue

Continuous Release npm npm bundle size npm GitHub GitHub issues

Installation

npm install @baloise/web-app-pipes-vue

Usage

In Vue 3 just import the pipe function and use it in computed functions or return it to the template. Vue 3 has removed pipes/filters Link.

<template>
  <p>{{ formatedClaimNumber }}</p>
</template>

<script lang="ts">
import { computed, defineComponent, ref } from 'vue'
import { balClaimNumber } from '@baloise/web-app-pipes-vue'

export default defineComponent({
  setup() {
    const claimNumber = ref('73001217169')

    const formatedClaimNumber = computed(() => balClaimNumber(claimNumber.value))

    return {
      formatedClaimNumber,
    }
  },
})
</script>

Readme

Keywords

none

Package Sidebar

Install

npm i @baloise/web-app-pipes-vue

Weekly Downloads

0

Version

3.15.0

License

Apache-2.0

Unpacked Size

24.4 kB

Total Files

10

Last publish

Collaborators

  • assistentenitch
  • madalina.iacob
  • yannickholzenkamp
  • montakasparsone
  • team_mortal
  • mladenplaninicic
  • nobilo
  • thomasseyssenstpo
  • se-aperto-com
  • baopso
  • hirsch88