#emberjs

/

      • locks
        marinated_pork: not unless you reflect them as data
      • marinated_pork
        ok
      • as in making it a property of the component
      • madumo
        locks: am i right about what i said or there is a way to just create a oneWay binding without the other twoWay binding?
      • bonsaielectric has quit
      • locks: would it be a good idea to do something like `valueBinding: Ember.computed.oneWay('parentView.value')`
      • bonsaielectric joined the channel
      • bengilli_ has quit
      • hilem joined the channel
      • lholmquist has quit
      • lele has quit
      • lholmquist joined the channel
      • hilem has quit
      • hilem joined the channel
      • lele joined the channel
      • maletor joined the channel
      • emiliocfaria has quit
      • emiliocfaria joined the channel
      • momomomomo has quit
      • sandstrom joined the channel
      • yaymukund joined the channel
      • annlewis joined the channel
      • momomomomo joined the channel
      • stevenmcd has quit
      • yaymukund has quit
      • stevenmcd joined the channel
      • annlewis has quit
      • stilldavid has left the channel
      • jarlopez
        After a clean install I'm seeing deprecation warnings in a sample Ember JS app
      • Is this common?
      • g13013 has quit
      • momomomomo joined the channel
      • g13013 joined the channel
      • tubbo
        jarlopez: if you are upgading it
      • grading*
      • jarlopez
        I wasn't, I just ran 'ember new someApp' and 'ember serve' with the vanilla packages. I manually upgraded Ember data to 1.13.9 which removed the deprecation warnings
      • Guest96666 joined the channel
      • marinated_pork has quit
      • momomomomo has quit
      • sahrizv joined the channel
      • Haider has quit
      • Guest96666 has quit
      • krz has quit
      • artto joined the channel
      • Haider joined the channel
      • sahrizv has quit
      • hilem has quit
      • kyrre has quit
      • gucki_ joined the channel
      • gucki has quit
      • StevenNu_ has quit
      • rromanch_ has quit
      • StevenNunez joined the channel
      • stevenmcd has quit
      • annlewis joined the channel
      • stevenmcd joined the channel
      • hilem joined the channel
      • Justin_error404j joined the channel
      • kazimuth joined the channel
      • hilem has quit
      • stevenmcd has quit
      • digia is now known as digia|away
      • mikl has quit
      • mikl joined the channel
      • lipoqil joined the channel
      • lipoqil
        Hey guys, is there some simple way how to generate Ember 2 app with ember-cli . (By simple a mean out-of-box)
      • Justin_error404j
        Hello, I have a site I am working on that uses ember 1.13.8, the site has a header where you select a value, and another template that needs to use that value to display some related data. I for the life of me can not get the other template to update when the value is selected in the header
      • Gandalfar has quit
      • I have tried injecting the controllers (first creating a computed alias, then by having the header directly set the value on the index), creating a shared service with a computed alias,
      • Observing the value, publishing an event,
      • When the page loads it gets the correct value, but it never updates when that value changes OR if its the observe, I see the value changes but I can not set that value on the index controller
      • alex88 has quit
      • Gandalfar joined the channel
      • hectorh30 has quit
      • knassar joined the channel
      • diamondgfx has quit
      • The shared service seems to be the correct way to share data between the controllers but the data shared there isn't acting like a computed property
      • yaymukund joined the channel
      • StevenNu_ joined the channel
      • StevenNunez has quit
      • emiliocfaria has quit
      • emiliocfaria joined the channel
      • StevenNunez joined the channel
      • alex88 joined the channel
      • emiliocfaria has quit
      • maletor joined the channel
      • emiliocfaria joined the channel
      • StevenNu_ has quit
      • andymocahey joined the channel
      • emiliocfaria1 joined the channel
      • roadrunneratwast has quit
      • emiliocfaria has quit
      • kanja has quit
      • yaymukund has quit
      • knassar has quit
      • atomiccc joined the channel
      • jonnn has quit
      • tristanseifert joined the channel
      • NoiseEee is now known as NoiseEee_
      • bcSquared_ joined the channel
      • jonnn joined the channel
      • digia|away is now known as digia
      • bcSquared has quit
      • artto has quit
      • artto joined the channel
      • kroofy has quit
      • kanja joined the channel
      • Gandalfar has quit
      • glennfu joined the channel
      • artto has quit
      • tristanseifert has quit
      • Gandalfar joined the channel
      • madumo has quit
      • krawchyk has quit
      • mxrguspxrt
        Please explain. Ember2. Why is #adapterDidInvalidate not called and what is new method. API docks is not updated. I am too stupid to understand process flow of ember activemodeladapter, internalmodel, embererror etc.
      • alexspeller
        lipoqil: you can install the master branch of ember-cli
      • lipoqil: instructions are listed on the github readme
      • wskinner has quit
      • wskinner joined the channel
      • Justin_error404j: show some code
      • StevenNunez joined the channel
      • lipoqil
        alexspeller: thx
      • hilem joined the channel
      • Justin_error404j
        ok
      • StevenNunez has quit
      • so I have a service (app/services/session-service)
      • import Ember from 'ember'; export default Ember.Service.extend({ currentSite: null, setCurrentSite: function(){ var currentSite = this.get('session.current_site'); this.set('currentSite', currentSite ); }.on('init'), });
      • yaymukund joined the channel
      • a header controller (app/controllers/header.js)
      • export default Ember.Controller.extend({ sessionService: Ember.inject.service(), siteHasEcommerce: function() { this.get('sessionService').set('currentSite', this.get('session.current_site')); if(this.get('session.current_site') === undefined) { return false; } else { return true; } }.property('session.current_site'), });
      • dcherman has quit
      • victortyau has quit
      • the property siteHasEcommerce is observed and is firing
      • and finally a index controller (app/controllers/index.js)
      • import Ember from 'ember'; export default Ember.Controller.extend({ sessionService: Ember.inject.service(), currentSite: Ember.computed.alias('sessionService.currentSite'), dashboardData: function(){ var currentSite = this.get('currentSite'); console.log("in dashboardData", currentSite); //other code that uses the currentSite,; }.property('currentSite'), });
      • dashboardData is consumed by the template and it does fire on page load
      • even get the correct current site, however when the site is updated by the header, the property in index does not update
      • alex88 joined the channel
      • waspinator joined the channel
      • _1009 has quit
      • dcherman joined the channel
      • is that just the wrong way to share data between two controllers? I have tried everything I can think with no luck
      • mkopriva has quit
      • alex88 has quit
      • sandstrom has quit
      • glennfu has quit
      • locks
        please use gist next time
      • Glyphik joined the channel
      • I can barely read the code
      • Justin_error404j
        sorry