Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Ember from 'ember';
- export default Ember.Controller.extend({
- appName: 'Ember Twiddle',
- justAPojo: {
- a: true,
- b: {
- c: 'yay'
- }
- },
- computedThing: Ember.computed('justAPojo.b.c', function() {
- return this.get('justAPojo.b.c');
- }),
- actions: {
- changeC(newValue) {
- this.set('justAPojo.b.c');
- }
- }
- });
Add Comment
Please, Sign In to add comment