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 hbs from 'htmlbars-inline-precompile'; | |
| const { | |
| Component | |
| } = Ember; | |
| export default Component.extend({ | |
| classNames: ['alert-container'], | |
| attributeBindings: [ |
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({ | |
| something: 'Get', | |
| is: 'ready', | |
| really: 'to', | |
| magical: 'party' | |
| }); |
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.TextField.extend({ | |
| focusCount: 0, | |
| focusInEvent: function(evt) { | |
| let count = this.incrementProperty('focusCount'); | |
| this.set('value', `Focused ${count} times`); | |
| }.on('focusIn') | |
| }); |
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({ | |
| options: [ | |
| Em.Object.create({ | |
| label: 'Search Engines', | |
| expanded: false, | |
| subOptions: [ | |
| Ember.Object.create({ label: 'Google', url: 'https://google.com' }), | |
| Ember.Object.create({ label: 'Bing', url: 'https://bing.com' }), |
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'; | |
| const { | |
| get, | |
| computed | |
| } = Ember; | |
| export default Ember.Component.extend({ | |
| tagName: 'svg', |
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'; | |
| const { | |
| get, | |
| computed | |
| } = Ember; | |
| export default Ember.Component.extend({ | |
| tagName: 'svg', |
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'; | |
| const { | |
| Component, | |
| computed, | |
| get, | |
| set, | |
| guidFor, | |
| assert, | |
| isPresent, |
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'; | |
| const { | |
| Component, | |
| get, | |
| assert, | |
| isPresent, | |
| isEmpty | |
| } = Ember; |
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'; | |
| const { | |
| get, | |
| computed | |
| } = Ember; | |
| export default Ember.Component.extend({ | |
| class: ['tile-icon'], | |
| percentComplete: 100, |
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' | |
| }); |