@ng-reactive/async-input
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Installation

npm install @ng-reactive/async-input --save

Usage

import { Component, Input } from '@angular/core';
import { AsyncInput } from '@ng-reactive/async-input';
import { BehaviorSubject } from 'rxjs';

@Component({
  selector: 'app-hello',
  templateUrl: './hello.component.html',
  styleUrls: ['./hello.component.css']
})
export class HelloComponent {
  @Input() name: string;
  @AsyncInput() name$ = new BehaviorSubject('Default Name');

  constructor() {
    this.name$.subscribe(name => console.log('from async input', name));
  }
}

/@ng-reactive/async-input/

    Package Sidebar

    Install

    npm i @ng-reactive/async-input

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    28.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • mfp22