Skip to content

Instantly share code, notes, and snippets.

@locks
Forked from velrest/controllers.application.js
Last active March 9, 2018 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save locks/fce3e51d0739aa6c57c6fd8f45e711c7 to your computer and use it in GitHub Desktop.
Save locks/fce3e51d0739aa6c57c6fd8f45e711c7 to your computer and use it in GitHub Desktop.
hidden
import Ember from 'ember';
export default Ember.Controller.extend({
appName: false
});
<label>{{input type="checkbox" checked=appName}} Toggle hidden</label>
<h1 hidden={{appName}}>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<br>
{
"version": "0.13.0",
"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.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment