Skip to Main Content
Hands-On Full Stack Web Development with Aurelia
book

Hands-On Full Stack Web Development with Aurelia

by Diego Argüelles Rojas, Erikson Murrugarra Murrugarra Sifuentes
June 2018
Intermediate to advanced content levelIntermediate to advanced
348 pages
8h 19m
English
Packt Publishing
Content preview from Hands-On Full Stack Web Development with Aurelia

Value converters

As we explained before coming across this topic, user interface elements in Aurelia are composed of two files: view and view model pairs. The view is written in pure HTML and is rendered into the DOM. The view model is written in JavaScript and provides data and behavior to the view. Aurelia links the two files together, as one single element using its powerful data binding engine, allowing changes in your view model to be reflected in the view and vice versa. Sometimes the data showed by your view model is not in a good or understandable format for displaying in the UI. Dealing with date and numeric values are the most common scenarios:

export class Example {    constructor() {    this.showRawData();  }  showRawData() {    this.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Front-End Tooling with Gulp, Bower, and Yeoman

Front-End Tooling with Gulp, Bower, and Yeoman

Stefan Baumgartner
Ember.js in Action

Ember.js in Action

Joachim Haagen Skeie

Publisher Resources

ISBN: 9781788833202Supplemental Content