Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
feat(component): added classes
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 21, 2017
1 parent 37358a8 commit 05d159c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/component/form-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ import {resolvedView} from 'aurelia-view-manager';
@customElement('form-error')
export class FormError {
@bindable error;

@bindable classes;
}
2 changes: 2 additions & 0 deletions src/component/form-help.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ import {resolvedView} from 'aurelia-view-manager';
@customElement('form-help')
export class FormHelp {
@bindable message;

@bindable classes;
}
2 changes: 1 addition & 1 deletion src/component/view/bootstrap/form-error.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<form-help message.bind="error"></form-help>
<form-help message.bind="error" classes.bind="classes"></form-help>
</template>
2 changes: 1 addition & 1 deletion src/component/view/bootstrap/form-help.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<template>
<p class="help-block" t.bind="message">${message}</p>
<p class="help-block ${classes}" t.bind="message">${message}</p>
</template>

0 comments on commit 05d159c

Please sign in to comment.