0.0.4 • Published 9 months ago

@manthanankolekar/ng-loader v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

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.

0.0.4

9 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.0-watch

1 year ago

0.0.1

1 year ago