Skip to content

khalidhoffman/ng-2way-bindable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-2way-bindable

2-way binding decorator for ng2+

Example Use

import { Component } from "@angular/core";
import { BindableInput } from "ng-2way-bindable";

@Component({
  selector: 'some-child-component',
  //...
})
export class SomeChildComponent {
    @BindableInput() twoWayBindedVar: any;
} 

@Component({
  //...
  template: `
  <some-child-component [(twoWayBindedVar)]='parentTwoWayBindedVar'></some-child-component>
  `
})
export class SomeParentComponent {
    parentTwoWayBindedVar: any;
} 

About

2-way binding decorator for ng2+

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors