This project is currently in development. It is not recommended to use it in production until version 1.x is released.
This project provides Bootstrap UI v3 (CSS framework) components for Aurelia JS.
- Create Aurelia project (webpack based, here sample with ASP.NET Core):
dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"
dotnet new aurelia
- Install required NPM packages:
npm install aurelia-bs --save
npm install aurelia-validation --save
- Register both plugins in
boot.ts
:
import { Aurelia, PLATFORM } from 'aurelia-framework';
...
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.plugin(PLATFORM.moduleName('aurelia-validation'))
.plugin(PLATFORM.moduleName('aurelia-bs'));
- Use bs-aurelia components and start application
dotnet run
- bs-accordion
- bs-button
- bs-checkbox
- bs-datepicker
- bs-expander
- bs-grid-filter
- bs-grid
- bs-label-collection
- bs-loader
- bs-navbar-header
- bs-resize-container
- bs-scroll
- bs-searchbox
- bs-select-grid
- bs-select
- bs-tabs
- bs-textbox
- Implement component
- Register component in "main.ts" as
globalResources()
- Add component name to package.json in the path "aurelia.build.resources"
- Export view model class from "index.ts"