Angular 12+ UI common directives, functions, services
Demo
Object Documentation
Code Coverage Report
Unit Test Report
Acceptance Report
Article on Medium
$ npm install @ngui/common --save
import { NguiInviewModule, NguiListModule, NguiUtilsModule } from '@ngui/common';
@NgModule({
imports: [BrowserModule, FormsModule, NguiListModule, NguiInviewModule, NguiUtilsModule],
declarations: [AppComponent],
providers: [HTTP_PROVIDERS],
bootstrap: [ AppComponent ]
})
export class AppModule { }
<!-- 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>
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>
Collection of basic utility functions
Handles list elements with highlight and keyboard/mouse interaction