This file contains hidden or 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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions:{ | |
add(){ | |
const match = this.get('match'); | |
this.set('model', [...this.model, match].uniq()) | |
}, | |
remove(){ | |
const match = this.get('match'); |
This file contains hidden or 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 Ember from 'ember'; | |
import {computed, get, set} from "@ember/object"; | |
import LinkComponent from '@ember/routing/link-component'; | |
export default LinkComponent.extend({ | |
didReceiveAttrs() { | |
let params = []; | |
if (this.get('linkto')) { | |
if (this.get('parent')) { | |
params.push(this.get('parent') + '.' + this.get('linkto')); |
This file contains hidden or 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 Ember from 'ember'; | |
import layout from '../templates/components/my-input'; | |
export default Ember.Component.extend({ | |
layout, | |
value: 'test', | |
}); |
This file contains hidden or 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
acl2: { | |
"carpet_design":{ | |
"title":"Manage Designs", | |
"create":{"title":"Create","allowed":true,"depends":["carpet_design.read"]}, | |
"read":{"title":"View","allowed":0}, | |
"update":{"title":"Edit","allowed":0}, |
This file contains hidden or 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
acl2: {"carpet_design":{ | |
"title":"Manage Carpet Designs", | |
"create":{"title":"Create","allowed":0}, | |
"read":{"title":"View","allowed":1}, |
This file contains hidden or 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 default DS.FixtureAdapter.extend({}); |