更新: | 2022-03-18 |
---|---|
作者: | @voluntas |
バージョン: | 2022.1 |
URL: | http://voluntas.github.io/ |
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!?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |