This file contains 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 Controller from '@ember/controller'; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from "@ember/object"; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked lat = 38.77; | |
@tracked long = -100.79; | |
@tracked zoom = 3; |
This file contains 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 Controller from '@ember/controller'; | |
import { tracked } from "@glimmer/tracking"; | |
import { action } from "@ember/object"; | |
export default class ApplicationController extends Controller { | |
appName = 'Ember Twiddle'; | |
@tracked lat = 38.77; | |
@tracked long = -100.79; | |
@tracked zoom = 3; |
This file contains 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 Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
export default class extends Component { | |
@action | |
didInsertNode() { | |
console.log('didInsertNode', this.args.type); | |
} | |
} |
This file contains 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 Ember.Controller.extend({ | |
lat: -27.5555, | |
lng: 152.94703, | |
zoom: 7, | |
test1:[-27.5555, 152.94703], | |
test2:[-27.69149, 153.01561], | |
test3:[-28.5, 153.01561], | |
test4:[-28.5, 150.01561], |
This file contains 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', | |
items: [ | |
{ | |
name: 'Miguel' | |
}, | |
{ |
This file contains 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', | |
store: Ember.inject.service(), | |
init() { | |
this._super(...arguments); | |
this.set('model', [ | |
this.get('store').createRecord('my-model', { name: '1' }), | |
this.get('store').createRecord('my-model', { name: '2' }), |
This file contains 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 { ChildMixin } from 'ember-composability-tools'; | |
export default Ember.Component.extend(ChildMixin, { | |
tagName: 'li' | |
}); |
This file contains 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({ | |
onInput(e) { | |
let owner = Ember.getOwner(this); | |
let component = Ember.Component.extend({ | |
layout: Ember.HTMLBars.compile(e.target.value), | |
renderer: owner.lookup('renderer:-dom') |
This file contains 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 { Controller } = Ember; | |
export default Controller.extend({ | |
lat: 45.528178, | |
lng: -122.670059, | |
zoom: 14, | |
restaurants: Ember.A([ | |
{ |
This file contains 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', | |
}); |
NewerOlder