Skip to content

Instantly share code, notes, and snippets.

View cristhian-net's full-sized avatar

Cristhian cristhian-net

  • Salta, Argentina
View GitHub Profile
<template>
<require from="./contador"></require>
<require from="./precio"></require>
<require from="converters/number-format"></require>
<div>
Total: <span>$ ${total | numberFormat:'0,0.00':'0'}</span>
</div>
<table class="table table-striped">
<thead>
<tr>
<template>
<section>
<h2>${heading}</h2>
<ux-form>
<ux-field label="Nombre">
<ux-input type="text" value.bind="producto.Nombre & validate"></ux-input>
</ux-field>
<ux-field label="Categoría">
import {ProductosRepository} from '../services/productosRepository';
import {CategoriasProductoRepository} from '../services/categoriasProductoRepository';
import {MateriaPrimaRepository} from '../services/materiaPrimaRepository';
import {
ValidationControllerFactory,
ValidationController,
ValidationRules,
} from 'aurelia-validation';
import { autoinject, computedFrom } from 'aurelia-framework';
import { AureliaUXFormRenderer } from '../components/forms-form-renderer';
import * as moment from 'moment';
export class FechaValueConverter {
public toView(value, format) {
if(value){
format = format || 'DD/MM/YYYY hh:mm A';
return moment(value).format(format);
}
}
@cristhian-net
cristhian-net / aurelia.json
Created May 1, 2017 13:53
This is my actual aurelia json
{
"name": "app-ux-showcase",
"type": "project:application",
"platform": {
"id": "web",
"displayName": "Web",
"output": "scripts",
"index": "index.html"
},
"transpiler": {