Guest User

Untitled

a guest
Dec 16th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import { observable } from 'aurelia-framework';
  2.  
  3. export class Car {
  4. @observable color = {rgb: '', hex: ''};
  5.  
  6. colorChanged(newValue, oldValue) {
  7. // this will fire whenever the 'color' property changes
  8. }
  9. }
  10.  
  11. import {bindable, bindingMode} from 'aurelia-framework';
  12.  
  13. export class SecretMessageCustomElement {
  14. @bindable data;
  15.  
  16. dataChanged () {
  17. // -------
  18. }
  19. }
Add Comment
Please, Sign In to add comment