0.2.2 • Published 4 years ago

two-way-decorator v0.2.2

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

two-way-decorator

Angular Two Way Data Binding Decorator

Usage:

import { Component, OnInit } from '@angular/core';
import { TwoWay } from 'two-way-decorator';

@Component({
  selector: 'app-example',
  templateUrl: './example.component.html',
  styleUrls: ['./example.component.scss']
})
export class ExampleComponent {

  @TwoWay()
  public text: string;

  @TwoWay()
  public count: number;

}

Then just use the binding like this in the parent template

  <app-example [(text)]="anyText" [(count)]="anyCount"></app-example>

Made with pure TypeScript and @angular/core.

Author: Sergiu Uifalean

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.0.1

4 years ago