Giter Club home page Giter Club logo

aurelia-components's Introduction

Aurelia components

Common useful components for the Aurelia Framework (https://aurelia.io)

Documentation

You can find the documentation within the source.

Install

npm install t-systems-aurelia-components --save

Use in your Aurelia project

Since this library doesn't provide any precompiled dist/ files, you need to reference the source code in your project.

Aurelia features

Open main.ts

aurelia.use
    .globalResources([
        PLATFORM.moduleName('t-systems-aurelia-components/src/value-converters/date-format-value-converter'),
    ])

Direct imports

import {CacheService} from "t-systems-aurelia-components/src/service/cache-service";

Locale related features

Some extensions like date-format-value-converter or currency-value-converter support localization. To change their internal locale, use the aurelia-i18n library.

import {I18N} from 'aurelia-i18n';
import {autoinject} from 'aurelia-framework';

@autoinject()
export class App {
    constructor(
        private readonly _i18n:I18N
    ) {
        this._i18n.setLocale("en");
    }
}

Dependencies

Some of these libraries have dependencies which are not provided by this library, so please install them by yourself in your project.

npm install moment --save

If you want to use the sanitize-html-html-sanitizer value-converter:

npm install sanitize-html --save

Publish this library to NPM

  1. Enable 2FA in your account
  2. Login as user (not as organisation)
    npm login
  3. Change version in package.json
  4. Run
    npm publish

Developing with this library

You can develop and bundling with this library directly by adding the library repository as dependency:

git clone https://github.com/T-Systems-MMS/aurelia-components.git t-system-aurelia-components

cd your-project
npm install ../t-systems-aurelia-components

In this case you may need to install the library's dependencies first:

cd t-systems-aurelia-components
npm install [email protected]

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.