https://github.com/manthanank/ng-loader
Ng Loader
https://github.com/manthanank/ng-loader
angular loader ng-loader
Last synced: about 2 months ago
JSON representation
Ng Loader
- Host: GitHub
- URL: https://github.com/manthanank/ng-loader
- Owner: manthanank
- Created: 2024-03-25T15:45:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T12:53:16.000Z (over 1 year ago)
- Last Synced: 2025-02-17T03:33:50.756Z (over 1 year ago)
- Topics: angular, loader, ng-loader
- Language: TypeScript
- Homepage:
- Size: 1.79 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NgLoader
This is a simple Angular loader library.




## Installation
```bash
npm install @manthanankolekar/ng-loader
```
## Usage
Import
```typescript
import { Component } from '@angular/core';
import { NgLoaderComponent } from '@manthanankolekar/ng-loader';
@Component({
selector: 'app-root',
imports: [
NgLoaderComponent
],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'ng-loader';
}
```
Use
```html
```
```typescript
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
isLoading = false;
loaderMessage = 'Loading, please wait...';
toggleLoader() {
this.isLoading = true;
// Optionally update the loader message here.
setTimeout(() => {
this.isLoading = false;
}, 3000);
}
}
```
## Demo
[Stackblitz](https://stackblitz.com/edit/ng-loader-example)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.