ngx-boolean-input
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

ngx-boolean-input

Install

npm install ngx-boolean-input

🤓 How to use

import { BooleanInput } from 'ngx-boolean-input';

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

export class AppComponent {

  @Input()
  @BooleanInput()
  editable: boolean | string | undefined;
}
<app-component></app-component> <!-- false -->
<app-component editable></app-component> <!-- true -->
<app-component [editable]="false"></app-component> <!-- false -->
<app-component editable="false"></app-component> <!-- false -->
<app-component [editable]="true"></app-component> <!-- true -->

💡 Inspiration

📝 Note

This library was generated with Nx.

Package Sidebar

Install

npm i ngx-boolean-input

Weekly Downloads

21

Version

1.2.0

License

MIT

Unpacked Size

10.5 kB

Total Files

11

Last publish

Collaborators

  • steffenkoehler