Giter Club home page Giter Club logo

oocx-ng's Introduction

OocxNg - Lightweight Angular components

npm version npm license build status

This project contains a collection of lightweight Angular components and directives.

I use these components for one of my own projects. I published them here because I think they may be useful for other projects as well.

The components in this library require a modern, evergreen browser (Chrome, Firefox, Edge, Safari, ...). Older browsers like Internet Explorer 11 are NOT supported.

Demo

The demo application shows most of the components.

Components included in OocxNg

  • Calendar
  • Date picker
  • Autocomplete
  • Autocomplete with multiple selection
  • Selection list
  • Number input
  • Label
  • Checkbox
  • Spinner (loading animation)

Directives

  • Number input
  • Label
  • History-back navigation

Pipes

  • Duration (converts a number to hour:minutes format)

Using OocxNg in your Angular project

Install the package: npm install oocx-ng --save or yarn install --save.

Import OocxNgModule in your own module:

import { OocxNgModule } from './../../projects/oocx-ng/src/lib/oocx-ng.module';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    OocxNgModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Development server

Run ng serve for a dev server that hosts the demo application. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build oocx-ng to build the library project. The build artifacts will be stored in the dist/oocx-ng directory.

Run ng build to build the demo project. The build artifacts will be stored in the dist/oocx-ng-demo directory.

Running unit tests

Run ng test oocx-ng to execute the unit tests via Karma.

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.