Skip to content

Instantly share code, notes, and snippets.

View HIRANO-Satoshi's full-sized avatar

HIRANO Satoshi, Ph.D. HIRANO-Satoshi

View GitHub Profile
@voluntas
voluntas / webrtc.rst
Last active May 21, 2024 13:55
WebRTC の未来
@kristianmandrup
kristianmandrup / Readme.md
Last active June 27, 2024 02:37
Aurelia dynamic view based on dynamic models

How to write a generic View renderer

Taken in part from discussions/solutions mentioned [here]this aurelia/templating#35)

Please also look at view-manager and aurelia-form for inspiration. Maybe also look here for example of dynamic data grid with rows and columns :)

Notes: This works for me as well. I only had to change view.bind(this.bindingContext); to view.bind(this); as I wanted to bind to the model itself (not its parent) and initially failed on using click delegates.

Alternative!?

@tdamir
tdamir / RouteGeneratorService.ts
Last active November 29, 2018 15:55
Aurelia parent+child route generation
import { autoinject } from 'aurelia-dependency-injection';
import { Router, RouterConfiguration } from 'aurelia-router';
import { CompositionEngine } from 'aurelia-templating';
import { relativeToFile } from 'aurelia-path';
import { Origin } from 'aurelia-metadata';
/**
* Usage:
* app.ts
* async attached(params, routeConfig, navigationInstruction) {