-
gmurphey has quit
-
B1n4r10 joined the channel
-
adib_ has quit
-
killtheliterate has left the channel
-
dionysus69 joined the channel
-
bengillies joined the channel
-
sandstrom joined the channel
-
bengillies has quit
-
mrbubbles joined the channel
-
scottn_work joined the channel
-
edwinvdgraaf joined the channel
-
edwinvdgraaf has quit
-
edwinvdgraaf joined the channel
-
orospakr joined the channel
-
hectorh30 has quit
-
orospakr has quit
-
Cohedrin_ joined the channel
-
Cohedrin has quit
-
alexspeller
ChargedLight: I believe it is in some circumstances
-
but you'll get an error in the console if that's the case
-
dadamssg joined the channel
-
orospakr_ joined the channel
-
diod joined the channel
-
diod has quit
-
diod joined the channel
-
ChargedLight has quit
-
dadamssg has quit
-
atomiccc has quit
-
gmurphey joined the channel
-
gmurphey has quit
-
mrbubbles has quit
-
mrbubbles joined the channel
-
hectorh30 joined the channel
-
robbyoconnor has quit
-
robbyoconnor joined the channel
-
ronnix has quit
-
dionysus69 has quit
-
dionysus69 joined the channel
-
bengillies joined the channel
-
robert_ has quit
-
robert_|disconne joined the channel
-
robbyoconnor has quit
-
robbyoconnor joined the channel
-
robbyoconnor has quit
-
orospakr joined the channel
-
nanoz has quit
-
romarioSilva
alexspeller: solved the problem of licence. Using the option 'preamble' in 'minifyJS' in the file 'ember-cli-build.js'
-
alexspeller
oh nice
-
romarioSilva has quit
-
atomiccc joined the channel
-
jtong joined the channel
-
gmurphey joined the channel
-
jtong
For a component that has a computed value. Is it more performant for the computed value to be on 'model.id' or 'model'?
-
like dataHref: computed('video.id', function() { or dataHref: computed('video', function() {
-
dcherman has quit
-
dcherman joined the channel
-
ur5us joined the channel
-
col joined the channel
-
svparijs joined the channel
-
gmurphey has quit
-
ryanuber joined the channel
-
jtong_ joined the channel
-
gmurphey joined the channel
-
jtong has quit
-
jtong_ has left the channel
-
jtong_ joined the channel
-
krz has quit
-
jtong_
For a component that has a computed value. Is it more performant for the computed value to be on 'model.id' or 'model'?
-
alexspeller
jtong_: I seriously doubt it makes any substantial difference
-
gmurphey has quit
-
ivanskie has quit
-
jtong_
thank you
-
jtong_ has quit
-
diamondg_ has quit
-
atomiccc has quit
-
ifire_ joined the channel
-
orospakr has quit
-
bangdollar joined the channel
-
iFire has quit
-
ronnix joined the channel
-
ronnix has quit
-
dadamssg joined the channel
-
atomiccc joined the channel
-
Gandalfar joined the channel
-
dadamssg has quit
-
B1n4r10 has quit
-
diod has quit
-
diod joined the channel
-
diod has quit
-
diod joined the channel
-
dcherman2 joined the channel
-
danlynn has quit
-
sagerdearia has quit
-
dcherman has quit
-
atomiccc has quit
-
svparijs has quit
-
svparijs joined the channel
-
svparijs has quit
-
svparijs joined the channel
-
bangdollar
ive injected a cookie into my routes and controllers
-
how can i get at that cookie from an api.js file where i only import Ember from 'ember';?
-
the method from a router/controller is this.cookie.getCookie()
-
ivanskie joined the channel
-
bengillies joined the channel
-
lavalike
bangdollar: maybe you could put the cookie stuff in a service, inject *that* into routes and controllers, and in whatever else you need
-
bangdollar
how would i access it as a service? wouldnt i still need to inject that service into the router or controller?
-
the api.js has no reference to any route or controller
-
it just does import Ember from 'ember'
-
hrm
-
if it were a servie, i could do like this.cookieservice.get()/set()
-
from any route or controller right
-
im not sure how to get at it when not in a route or controller
-
wldcordeiro joined the channel
-
atomiccc joined the channel
-
okay let me put it this way
-
im using an api.js file to make calls to a backend service. when it logs in, the server returns a cookie
-
i have ember-cli-cookie installed
-
im just not sure how to get the cookie from the server response in this context (api.js file)
-
ive confirmd the server is sending the cookie
-
duggiefresh has quit
-
lavalike
bangdollar: you add cookieservice: Ember.inject.service(), to your object properties, whatever that is
-
then you can this.get('cookieservice') and use any property/method on it in said object
-
(not sure what api.js is)
-
bangdollar
its just a file i made
-
alexspeller
bangdollar: sounds like api.js should be a service
-
bangdollar
it probably should be
-
right now its just a file i include to make backend calls
-
so i need to Ember.inject.service() in api.js?
-
alexspeller
no
-
you need to make it into a service
-
lavalike
the other way around, wherever you need to make api calls you inject the service
-
bangdollar
ohhh
-
alexspeller
-
and is included with ember-cli
-
lavalike
there are still benefits to making your own service, kinda like the store
-
bangdollar
gotcha
-
Timba-as_ joined the channel
-
s3shs joined the channel
-
gmurphey joined the channel
-
dionysus69 has quit
-
thansen joined the channel
-
dcherman2 has quit
-
orospakr_ joined the channel
-
atomiccc has quit
-
orospakr_ has quit
-
dcherman joined the channel
-
atomiccc joined the channel
-
Gandalfar has quit
-
geheimnis` joined the channel
-
arcwhite joined the channel