Skip to content

Instantly share code, notes, and snippets.

@feanor07
Last active March 16, 2017 05:37
Show Gist options
  • Save feanor07/aaa28e54bb8a4a91a0e3523136ab689d to your computer and use it in GitHub Desktop.
Save feanor07/aaa28e54bb8a4a91a0e3523136ab689d to your computer and use it in GitHub Desktop.
Stackoverflow Question #42825536 modified
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
onModalHidden() {
this.set('modal1', false);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
{{#bs-button onClick=(action (mut modal1) true)}}Open Modal{{/bs-button}}
{{my-modal modal1=(readonly modal1) onModalHidden=(action 'onModalHidden')}}
<br>
<br>
{{#bs-modal-simple open=modal1 title="Simple Dialog" size="sm" onHidden=(action onModalHidden)}}
Hi there
{{/bs-modal-simple}}
{
"version": "0.11.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.11.0",
"ember-data": "2.11.0",
"ember-template-compiler": "2.11.0",
"ember-testing": "2.11.0"
},
"addons": {
"ember-bootstrap":"1.0.0-alpha.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment