Permalink
Browse files

fix(view): name of aurelia-view changed to aurelia-view-manager

  • Loading branch information...
bas080
bas080 committed Jun 6, 2016
1 parent 9ac7f57 commit eeb9697cb8313e6a7c677d95bd9adae2bbba48cf
Showing with 4 additions and 12 deletions.
  1. +3 −3 src/config.js
  2. +1 −9 src/form-field.js
@@ -1,15 +1,14 @@
import extend from 'extend';
import {inject} from 'aurelia-dependency-injection';
import {Config as ViewManagerConfig} from 'aurelia-view';
import {Config as ViewManagerConfig} from 'aurelia-view-manager';

const DEFAULT_FRAMEWORK = 'bootstrap';

@inject(ViewManagerConfig)
export class Config {
constructor(viewManagerConfig) {

/* should these configs be moved? Maybe in a*/
viewManagerConfig.register('aurelia-form', {
viewManagerConfig.configureNamespace('aurelia-form', {
base: './frameworks/{{framework}}',
location: '{{base}}/{{view}}.html',
framework: DEFAULT_FRAMEWORK,
@@ -19,6 +18,7 @@ export class Config {
actions: '{{base}}/actions',
collection: '{{base}}/collection',

/* all input components */
text: '{{base}}/input.html',
button: '{{base}}/input.html',
color: '{{base}}/input.html',
@@ -1,6 +1,6 @@
import {Config} from './config';
import {bindingMode, bindable, computedFrom, inject} from 'aurelia-framework';
import {ViewManager} from 'aurelia-view';
import {ViewManager} from 'aurelia-view-manager';

@inject(Config, Element, ViewManager)
export class FormFieldCustomElement {
@@ -10,9 +10,6 @@ export class FormFieldCustomElement {
@bindable({defaultBindingMode: bindingMode.twoWay})
value

@bindable
errors

constructor(config, element, viewManager) {
this.config = config;
this.element = element;
@@ -39,11 +36,6 @@ export class FormFieldCustomElement {
return this.viewManager.resolve('aurelia-form', type);
}

@computedFrom('errors')
get showErrors() {
return (this.errors && this.errors.length > 0);
}

/**
* Calculates what component to use
*

0 comments on commit eeb9697

Please sign in to comment.