@manthanankolekar/ng-loader
v0.0.4
Published
A loader for Angular applications
Downloads
12
Maintainers
Readme
NgLoader Library
This is a library for loading Angular components dynamically.
Installation
npm install @manthanankolekar/ng-loader
Usage
Import
import { Component } from '@angular/core';
import { NgLoaderComponent } from '@manthanankolekar/ng-loader';
@Component({
selector: 'app-root',
standalone: true,
imports: [
NgLoaderComponent
],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'ng-loader';
}
Use
<ng-loader [loading]="isLoading"></ng-loader>
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
standalone: true,
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
isLoading = true;
constructor() {
setTimeout(() => {
this.isLoading = false;
}, 5000);
}
}
License
This project is licensed under the MIT License - see the LICENSE.md file for details.