1.0.5 • Published 4 years ago

ng-bs-controls v1.0.5

Weekly downloads
24
License
-
Repository
-
Last release
4 years ago

Angular Bootstrap Controls

This library contains commonly used bootstrap controls as Angular components. Here is live stackBlitz sample

Installation

Install ng-bs-controls from npm:

npm install ng-bs-controls --save

Add BsControlsModule package to NgModules imports:

import { BsControlsModule } from 'ng-bs-controls';

@NgModule({
...
imports: [BsControlsModule,...]
...
})

Use needed components in your forms, you can refer to sample form in ng-bs-controls github

<app-form-text-email
[(ngModel)]="email"
[formLabel]="'Email'"
[name]="'email'"
[isRequired]="true"
[setAutofocus]="true">
</app-form-text-email>

You will need bootstrap styles:

  • Bootstrap 4
<!--- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">

License

MIT