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

├── aurelia-dialog@1.0.0-beta.3.0.1
├── aurelia-fetch-client@1.1.2
├── aurelia-files@0.1.3
├─┬ aurelia-framework@1.1.0
│ ├── aurelia-binding@1.2.1
│ ├── aurelia-loader@1.0.0
│ └── aurelia-task-queue@1.2.0
├─┬ aurelia-froala-editor@2.7.3
│ └── froala-editor@2.6.5
├── aurelia-history-browser@1.0.0
├── aurelia-http-client@1.1.0
├── aurelia-loader-default@1.0.2
├── aurelia-logging-console@1.0.0
├── aurelia-pal-browser@1.2.0
├── aurelia-polyfills@1.2.1
├─┬ aurelia-router@1.2.1
│ └── aurelia-route-recognizer@1.1.0
├── aurelia-templating@1.7.0
├─┬ aurelia-templating-binding@1.4.0
│ └── aurelia-binding@1.6.0
├── aurelia-templating-resources@1.3.1
├── aurelia-templating-router@1.1.0
├── aurelia-testing@1.0.0-beta.4.0.0
├─┬ aurelia-tools@1.0.0
│ └─┬ breeze-dag@0.1.0
│ ├─┬ breeze-queue@0.1.0
│ │ └── breeze-nexttick@0.2.1
│ └── gaia-tsort@0.1.0

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