Last active
August 17, 2016 18:51
-
-
Save pjschreifels/88c9f937c780d5564873541d4f782f7d to your computer and use it in GitHub Desktop.
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
<template> | |
<button type="button" class="btn btn-secondary" click.trigger="show()">Show</button> | |
</template> |
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-framework'; | |
import {View} from './view'; | |
export class Show() { | |
constructor(private view: View) { | |
} | |
show() { | |
//this.view.someBoolean = true; | |
this.view.displayThis(true); | |
} | |
} |
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
<template> | |
<div class="card card-sm" show.bind="someBoolean"> | |
<div class="card-block"> | |
<p class="mb5">Display some stuff.</p> | |
</div> | |
</div> | |
</template> |
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
export class View { | |
someBoolean: boolean = false; | |
constructor(){ | |
} | |
displayThis(result) { | |
this.someBoolean = (result) ? true : false; | |
console.log(this.someBoolean); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment