aurelia-bs
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

aurelia-bs: Bootstrap UI components for Aurelia JS

npm

This project provides Bootstrap UI v3 (CSS framework) components for Aurelia JS.

Demo

We open-sourced our internally implemented Aurelia JS components so that everyone can use and improve them. We would be very glad if you contribute your own components, improvements and bug fixes.

Installation

  1. Create Aurelia project (webpack based, here sample with ASP.NET Core):
dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"
dotnet new aurelia
  1. Install required NPM packages:
npm install aurelia-bs --save
npm install aurelia-validation --save
  1. 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'));
  1. Use bs-aurelia components and start application
dotnet run

Usage

Components

Development

How to add a component

  • 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"

Package Sidebar

Install

npm i aurelia-bs

Weekly Downloads

41

Version

1.1.4

License

MIT

Unpacked Size

6.95 MB

Total Files

694

Last publish

Collaborators

  • rsuter