Code Monkey home page Code Monkey logo

ngui-common's Introduction

@ngui/common

Angular 6+ UI common directives, functions, services

Build Status npm npm npm

Demo
Object Documentation
Code Coverage Report
Unit Test Report
Acceptance Report

Install

  1. install @ngui/common
$ npm install @ngui/common --save
  1. import NguiCommonModule to your AppModule
import { NguiInviewModule, NguiListModule, NguiUtilsModule } from '@ngui/common';

@NgModule({
  imports: [BrowserModule, FormsModule, NguiListModule, NguiInviewModule, NguiUtilsModule],
  declarations: [AppComponent],
  providers: [HTTP_PROVIDERS],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

Use it in your code

<ngui-inview> <!-- only displays when this is in viewport -->
  <img *ngIf src="https://picsum.photos/800/300" height="33%">
</ngui-inview>

Modules

NguiInViewModule

Handles lazy loading of Angular components, which utilizes HTML5 IntersectionObserver For IE11 and Safari, please add polyfill for this module <script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>

  • ngui-inview component
  • ngui-inview directive

NguiUtilsModules

Collection of basic utility function

  • DynamicComponentService
  • nguiHilight pipe
  • fireEvent function

NguiListModule

Handles list elements with highlight and keyboard/mouse interaction

  • ngui-inview-page component
  • ngui-list component
  • ngui-virtual-list component
  • ngui-autocomplete component

ngui-common's People

Contributors

allenhwkim avatar hakimio avatar

Watchers

 avatar  avatar

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.