Skip to content

Instantly share code, notes, and snippets.

@tjad
Created December 29, 2017 09:27
Show Gist options
  • Save tjad/4414b3517f71112c0f49de59afb443a9 to your computer and use it in GitHub Desktop.
Save tjad/4414b3517f71112c0f49de59afb443a9 to your computer and use it in GitHub Desktop.
import {TestParent} from 'test-parent'
import {useView} from 'aurelia-framework'
@useView('test-parent.html')
export class ChildOne extends TestParent{
constructor(){
super()
}
}
import {useView} from 'aurelia-framework'
import {TestParent} from 'test-parent'
@useView('test-parent.html')
export class ChildTwo extends TestParent{
constructor(){
super()
}
}
<template>
<h1> House template </h1>
<child-one></child-one>
<child-two></child-two>
</template>
import {viewResources} from 'aurelia-framework'
@viewResources('child-one','child-two')
export class House {
constructor(){
}
}
<template>
<h1> The common template </h1>
</template>
import {bindable} from 'aurelia-framework'
export class TestParent{
@bindable commonBindable
constructor(){
}
}
@tjad
Copy link
Author

tjad commented Dec 29, 2017

Should render "The common template" twice, but only renders once.

@tjad
Copy link
Author

tjad commented Dec 29, 2017

├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └── [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment