New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ngui/common

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngui/common

Angular 6 and 7 common modules; virtual-scroll, lazy-rendering, interactive list, etc

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
100
increased by11.11%
Maintainers
3
Weekly downloads
 
Created
Source

@ngui/common

Angular 12+ UI common directives, functions, services

Build Status npm npm npm

Demo
Object Documentation
Code Coverage Report
Unit Test Report
Acceptance Report
Article on Medium

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

<!-- the image is only displayed when "ngui-inview" is in viewport -->
<ngui-inview style="min-height: 300px">
  <img *ngIf src="https://picsum.photos/800/300" height="33%">
</ngui-inview>

Modules

NguiInViewModule

Handles lazy rendering 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 functions

  • 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

Keywords

FAQs

Package last updated on 09 Feb 2022

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